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.
Change scope while chatting - Visual Studio Tutorial
From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Change scope while chatting
- [Instructor] By default, when we chat with Copilot, it works within the context of the active document. So in this example, in this solution, I'm using my Pedal Pine Tours website. I could pick one of these files, let's say here in the Tours folder, I wanna look at the index page. This is now the active document. That means the contents of this file is being sent to the large language model. Now there's more nuance to how Copilot handles context, especially when it comes to the active document. And we'll unpack those details in the next video. This default context, which you can see over here, Active Document, gives Copilot a focused view of your code, but sometimes we need more or less depending on what we're trying to accomplish. That's where you can click on this button. It says add attachment, but it does much more than that. This is the scope control. This menu lets us adjust the context. We can narrow it to a…