You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/copilot/copilot-vscode-features.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Use natural language to chat with GitHub Copilot and get help with coding tasks.
24
24
|--------|-------------|
25
25
|`kb(workbench.action.chat.open)`| Open the **Chat view** and start a chat conversation with Copilot by using natural language. |
26
26
|`kb(workbench.action.quickchat.toggle)`| Open **Quick Chat** and ask a quick question to Copilot. |
27
-
|`@`| Invoke a *chat participant*, which is a domain expert that can help you in a specific are.<br/>Example: `@workspace how is auth implemented?`|
27
+
|<iclass="codicon codicon-mention"></i> | Type `@`in chat or select <iclass="codicon codicon-mention"></i> to view the list of *chat participants*, which are domain experts that can help you in a specific area. Extensions can also contribute additional participants.<br/>Example: `@workspace how is auth implemented?`|
28
28
| Participant detection <iclass="codicon codicon-beaker"></i> | Copilot Chat can also automatically route your question to the appropriate participant. [Get more info](https://code.visualstudio.com/updates/v1_93#_automatic-chat-participant-detection-in-chat-view-experimental). |
29
29
|`/`| Invoke a *slash command* to prompt for commonly used actions, such as explaining a block of code, generating tests or documentation. |
30
30
|`/explain`| Ask Copilot to explain a block of code or a programming concept. |
@@ -60,14 +60,17 @@ When you send a chat prompt to Copilot, you can attach context to help Copilot u
60
60
61
61
| Action | Description |
62
62
|--------|-------------|
63
-
| <iclass="codicon codicon-attach"></i><br/>`kb(workbench.action.chat.attachContext)`| Open a Quick Pick to select relevant context for your chat prompt. Choose from workspace files, symbols, current editor selection or visible contents, terminal selection or last run command, or the VS Code API. |
64
-
|`#selection`| Add the current editor selection as context to your prompt. |
63
+
| <iclass="codicon codicon-attach"></i> (`kb(workbench.action.chat.attachContext)`) | Open a Quick Pick to select relevant context for your chat prompt. Choose from workspace files, symbols, current editor selection or visible contents, terminal selection or last run command, or the VS Code API. |
64
+
|`#codebase`| Context variable: add relevant workspace content as context to your prompt. |
65
+
|`#editor`| Context variable: add the visible contents of the active editor as context for your prompt. |
66
+
|`#selection`| Context variable: add the current editor selection as context to your prompt. |
67
+
|`#terminalSelection`| Context variable: add the current terminal selection as context to your chat prompt. |
68
+
|`#terminalLastCommand`| Context variable: add the last run terminal command as context to your chat prompt. |
69
+
|`#VSCodeAPI`| Context variable: add the VS Code API as context to your prompt to ask questions related to VS Code extension development. |
65
70
|`#file`| Open a Quick Pick to select a file from your workspace and add it as context for your prompt. |
66
-
|`#editor`| Add the visible contents of the active editor as context for your prompt. |
67
-
|`#terminalSelection`| Add the current terminal selection as context to your chat prompt. |
68
-
|`#terminalLastCommand`| Add the last run terminal command as context to your chat prompt. |
69
-
|`#VSCodeAPI`| Add the VS Code API as context to your prompt to ask questions related to VS Code extension development. |
70
-
| Use recent files <iclass="codicon codicon-beaker"></i> | Automatically include recently opened and edited files in your chat prompt. [Get more info](https://code.visualstudio.com/updates/v1_93#_use-recent-coding-files-as-inline-chat-context-experimental). |
71
+
|`#<filename>`| Type `#`, followed by a filename, to get filename suggestions for workspace files and attach as context. |
72
+
| Drag & drop file | Drag & drop a file or editor onto the chat to attach the file as context. |
73
+
| Recent files <iclass="codicon codicon-beaker"></i> | Automatically include recently opened and edited files in your chat prompt. [Get more info](https://code.visualstudio.com/updates/v1_93#_use-recent-coding-files-as-inline-chat-context-experimental). |
71
74
72
75
> **Tips**
73
76
>
@@ -99,6 +102,8 @@ Copilot can generate code based on your chat prompt. You can customize the gener
99
102
| Action | Description |
100
103
|--------|-------------|
101
104
| Code-generation instructions <iclass="codicon codicon-beaker"></i> | Define instructions for code generation with GitHub Copilot in settings or import from a file. You can define language-specific instructions. [Get more information](https://code.visualstudio.com/updates/v1_93#_code-generation-instructions). |
105
+
| Shared instructions <iclass="codicon codicon-beaker"></i> | Define shared instructions for code generation in a `.gitHub/copilot-instructions.md` file in your workspace. These common instructions supplement your own personal code generation instructions. |
106
+
| Test-generation instructions <iclass="codicon codicon-beaker"></i> | Define instructions for test generation with GitHub Copilot in settings or import from a file. You can define language-specific instructions. [Get more information](https://code.visualstudio.com/updates/v1_94#_custom-instructions-experimental). |
102
107
103
108
> **Tips**
104
109
>
@@ -112,6 +117,7 @@ Copilot can generate tests for functions and methods in your codebase. Get more
112
117
| Action | Description |
113
118
|--------|-------------|
114
119
|`/tests`| Generate tests for all or only the selected methods and functions in the editor. The generated tests are appended in an existing tests file or a new tests file is created. |
120
+
|`/setupTests`| Get help setting up a testing framework for your code. Get recommendation for a relevant testing framework, steps to set up and configure it, and suggestions for VS Code testing extensions. |
115
121
| Test coverage <iclass="codicon codicon-beaker"></i> | Generate tests for functions and methods that are not yet covered by tests. [Get more information](https://code.visualstudio.com/updates/v1_93#_generate-tests-based-on-test-coverage-experimental). |
116
122
117
123
> **Tips**
@@ -133,6 +139,7 @@ Use Copilot to help fix coding problems and to get help with configuring and sta
133
139
| Action | Description |
134
140
|--------|-------------|
135
141
|`/fix`| Ask Copilot for suggestions on how to fix a block of code or how to resolve any compiler or linting errors in your code. For example, to help fix unresolved Node.js package names. |
142
+
|`/fixTestFailure`| Ask Copilot for suggestions on how to fix failing tests. |
136
143
|`/startDebugging` <iclass="codicon codicon-beaker"></i> | Generate a `launch.json` debug configuration file and start a debugging session from the Chat view. [Get more information](https://code.visualstudio.com/updates/v1_93#_start-debugging-from-chat-experimental). |
137
144
138
145
> **Tips**
@@ -149,6 +156,14 @@ Copilot can analyze the changes in your commits and pull requests and provide su
149
156
| Commit | Generate a commit message for the current changes in a source control commit. |
150
157
| Pull request | Generate a pull request title and description that correspond with the changes in your pull request. |
151
158
159
+
## Search
160
+
161
+
Use Copilot to get more relevant search results in the Search view.
162
+
163
+
| Action | Description |
164
+
|--------|-------------|
165
+
| Semantic search | Include search results from Copilot in the Search view that are semantically relevant. |
166
+
152
167
## Terminal
153
168
154
169
Get help about shell commands and how to resolve errors when running commands in the terminal.
0 commit comments