Visual Studio Code lookup
Another powerful feature of Copilot is being able to quickly look up how to do something in Visual Studio Code. Rather than consulting official documentation, you may want to quickly find what you need without leaving your code editor. To use this feature, there’s a @vscode
command. Let’s ensure we have the chat window open and see how it works with the following prompt:
[Prompt]
@vscode
How do I open a terminal window?
[End of prompt]
Figure 20.6: Copilot response to the above prompt
There are two things worth noting here:
- Copilot tells you how to do something and where to find it.
- It offers to visually show you how to find what you need if you click the Show in Command Palette button.