From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Chat with GitHub Copilot - Visual Studio Tutorial
From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Chat with GitHub Copilot
- [Instructor] It's time for our first chat. We'll start by exploring how the chat window works with the context of the active document. So what does that mean? If I have this tour.cs file open in my editor, that's the context Copilot will use when I ask questions or request changes. If I switch to this index.cshtml file, then that becomes the context. The chat window stays in sync with whatever file is currently active. So we'll start with this Razor page here, and I'll first start by asking for a summary. Note the active document selection above. I'll say summarize this page. Now that chat is running, it's hitting the cloud and I'm getting a response back. So let's take a look at what we got back. It says it has one reference. It's referencing this one file. It's giving me a summary. This Razor page displays a searchable and filterable list of cycling tours. Now you notice there's a hyperlink here. If I click on…