Start Smart with AI in Visual Studio
AI-powered development in Visual Studio
()
How to access the sample code on GitHub
()
1. AI and Programming Code
How AI tools support developers
()
AI, LLMs, and Copilot
()
Analytical AI
()
Which Visual Studio version to use
()
Generate a working project with Copilot agent
()
2. Get Ready to Use Copilot
GitHub Copilot, the backbone of AI in the IDE
()
Subscription options
()
Activate Copilot in Visual Studio
()
Adjust Copilot settings and behavior
()
Choose an AI model for Copilot
()
3. Completions: Smarter Code, Faster Flow
Completions, chat, and agent modes
()
IntelliCode: Built-in AI suggestions
()
IntelliCode vs. Copilot comparison
()
Code completion: Create method in C#
()
Use comments to guide completion
()
Code completion: Python
()
4. Copilot Chat Window
Chat mode in Copilot: Quick review
()
Anatomy of the Copilot chat window
()
Chat with GitHub Copilot
()
Switch between Copilot models
()
Chat history and persistence
()
Edit the active document
()
5. Change Chat Scope and Context
Change scope while chatting
()
What "active document" really means
()
Use scope tags to change scope
()
Participants: @workspace, @vs, @github
()
Use a participant
()
6. Slash Commands
Slash commands as chat snippets
()
The /explain slash command
()
The /fix slash command
()
The /optimize slash command
()
7. Use Images in Chat Prompts
Use images with the chat
()
Analyze image content
()
Generate code based on an image
()
View the generated HTML and CSS
()
8. Customizing the Chat Experience
Customizing chat with markdown files
()
Understand this chapter project
()
The anatomy of a great instruction file
()
Use custom instructions effectively
()
Use prompt files to guide Copilot
()
9. Inline Chat: Code Meets Context
Inline chat in Copilot: Quick review
()
Use inline chat for quick edits
()
Describe code with Copilot inline
()
Use slash commands inline
()
Refactor code inline
()
Write XML documentation with AI
()
Write comments with AI
()
10. Refactor and Automate with Copilot Agent
Agent mode in Copilot: Quick review
()
Create a new project: Where and how
()
Start simple, create a new project
()
Pedal & Pine Tours sample application
()
Add a new feature to a existing project
()
Keep or reject the changes
()
Appending more instructions
()
Refactor code with Copilot agent
()
Build a new UI with the help of Copilot
()
Examine the refactored site
()
Deeper look: Where does Copilot run?
()
11. Build a Complete Razor Application with Copilot Agent
Why use generative AI to create anything?
()
Explore the PortChecker prototype
()
PortChecker: The console version
()
PortChecker: The class library
()
PortChecker: The Windows UI
()
Explore the kaleidoscope prototype
()
Kaleidoscope: Failures and frustrations
()
Ask for help: Use chat to refine app generation
()
12. Debug Smarter with Copilot
Explain build error messages
()
Debug mode in the Copilot chat window
()
Explain runtime errors and exceptions
()
Diagnosing incorrect runtime behavior
()
Analysis: Why a variable has its value
()
The integration with the Watch windows
()
The sample Visualizer code
()
Visualize data with LINQ and Copilot
()
AI-powered breakpoints and tracepoints
()
13. Enhanced Git with Copilot
Write smarter commit messages
()
Commit message customization
()
Pull request assistance
()
Use @github for repository insights
()
14. What’s Next in Your AI Journey
The LLM landscape
()
What happened to Copilot Edits?
()
Custom MCP servers
()
Next steps and learning resources
()