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-chat.md
+11-17Lines changed: 11 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,16 +237,18 @@ Similar to `/fix`, the `/doc` smart action is popular with users. To use `/doc`,
237
237
238
238
## Chat participants
239
239
240
-
To further help Copilot give you more relevant answers, you can indicate the scope and intent of your question through chat *participants*.
241
-
242
-
Chat participants are like experts who have a specialty that they can help you with, and you can talk to them in the chat by mentioning them with the `@` symbol. Currently, these are the following built-in chat participants:
240
+
*Chat participants* are like experts who have a specialty that they can help you with. You can invoke a chat participant by typing '@' in the chat input field, followed by the participant name. There are several built-in chat participants:
243
241
244
242
*`@workspace` has context about the code in your workspace and can help you navigate it, finding relevant files or classes.
245
243
*`@vscode` knows about commands and features in the VS Code editor itself, and can help you use them.
246
244
*`@terminal` has context about the integrated terminal shell and its contents.
247
245
*`@github` has knowledge about your GitHub repositories, issues, pull requests, and topics, and can also perform web searches using the Bing API.
248
246
249
-
Extensions can also contribute chat participants to provide specialized help for their domain.
247
+
Extensions can also contribute chat participants to provide specialized help for their domain. To find the list of available chat participants, type `@` in the chat input field.
248
+
249
+
These are some examples of extensions in the Visual Studio Marketplace that contribute a chat participant to the Chat view in VS Code. Go to the [Marketplace](https://marketplace.visualstudio.com/search?term=tag%3Achat-participant&target=VSCode&category=All%20categories&sortBy=Relevance) or use the integrated [Extensions view](/docs/editor/extension-marketplace.md) and search for more extensions by using the `chat-participant` tag.
250
+
251
+
<divclass="marketplace-extensions-chat"></div>
250
252
251
253
### @workspace
252
254
@@ -311,28 +313,20 @@ Chat participants contributed via a GitHub App do not run on your local machine
311
313
312
314
## Slash commands
313
315
314
-
One of the tasks when answering questions is to determine the intent, understanding what you want to do. You can use natural language to describe your intent, but it can be ambiguous. To help with this, you can use *slash commands*. Chat participants can contribute slash commands, which are shortcuts to specific, commonly used functionality provided by that chat participant.
316
+
Chat participants can provide shortcuts to specific functionality by using *slash commands*. These commands provide a concise and structured way to interact with chat participants and to give them instructions. You can reference slash commands in your chat prompt by typing the participant, followed by `/` and the command name.
315
317
316
-
For example, we can infer that "Create a new workspace with Node.js Express Pug TypeScript" means that you want a new project. Instead, you can also use "@workspace /new Node.js Express Pug TypeScript" is explicit, concise, and saves you time typing. In this case, the `/new` slash command is a shortcut to create a new workspace.
318
+
For example, the `@workspace` participant has a slash command `/new` to scaffold a new workspace or a new file. Typing `@workspace /new Node.js Express Pug TypeScript` in the chat input field creates a new workspace with a Node.js Express Pug TypeScript project.
317
319
318
-
Once the intent is clear, `@workspace` has a better chance of addressing your needs, despite the inherent ambiguity of natural language. The @workspace chat participant can propose a directory structure and users can select the proposed files to preview them. There is a **Create Workspace** button that generates these files in a new folder.
319
-
320
-
Examples of built-in commands - type `@` or select the <iclass="codicon codicon-mention"></i> icon.
*`@workspace /explain` (or `/explain`): explain how the selected code works
326
325
*`@workspace /fix` (or `/fix`): propose a fix for the problems in the selected code
327
-
*`@workspace /fixTestFailure` (preview): propose a fix for failing tests
328
-
*`@workspace /setupTests`: configure a testing framework for your workspace
329
-
*`@workspace /tests` (or `/tests`): generate unit tests for the selected code
330
326
*`@workspace /new` (or `/new`): scaffold code for a new workspace or new file
331
-
*`@workspace /newNotebook` (or `/newNotebook`): create a new Jupyter Notebook
332
327
*`@vscode /runCommand`: search or run a VS Code command
333
-
*`@vscode /search` (or `/search`): generate query parameters for the Search view
334
-
*`@vscode /startDebugging` (experimental): generate `launch.json` file to set up debugging configuration and start debugging
335
-
*`@terminal /explain`: explain terminal functionality or shell commands
328
+
329
+
To view the list of build-in participants and their commands, type `@` in the chat input field or select the <iclass="codicon codicon-mention"></i> icon.
0 commit comments