GitHub Copilot Chat cheat sheet
发布时间:2026-09-15 | 浏览:1
Use this cheat sheet to quickly reference the most common commands and options for using GitHub Copilot Chat.
Tool navigation
In this article
This version of this article is for Copilot on the GitHub website. For other versions of this article, click the tabs above.
About GitHub Copilot enhancements
You can enhance your experience of Copilot Chat with a variety of commands and options. Finding the right command or option for the task you are working on can help you achieve your goals more efficiently. This cheat sheet provides a quick reference to the most common commands and options for using Copilot Chat.
For information about how to get started with Copilot Chat in the GitHub website, see Asking GitHub Copilot questions in GitHub .
Use @ mentions in to attach relevant context directly to your conversations. Type @ in the chat prompt box to display a list of items you can attach, such as:
Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by the command name.
Available slash commands may vary, depending on your environment and the context of your chat. To view a list of currently available slash commands, type / in the chat prompt box of your current environment. Below is a list of some of the most common slash commands for using Copilot Chat.
Below is a list of the MCP skills that are currently available in Copilot Chat in GitHub, and example prompts you can use to invoke them. You do not need to use the MCP skill name in your prompt; you can simply ask Copilot Chat to perform the task.
For more information about using MCP skills in Copilot Chat, see Using the GitHub MCP Server in your IDE .
This version of this article is for Copilot in Visual Studio Code. For other versions of this article, click the tabs above.
About GitHub Copilot enhancements
You can enhance your experience of Copilot Chat with a variety of commands and options. Finding the right command or option for the task you are working on can help you achieve your goals more efficiently. This cheat sheet provides a quick reference to the most common commands and options for using Copilot Chat.
For information about how to get started with Copilot Chat in Visual Studio Code, see Asking GitHub Copilot questions in your IDE .
Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by the command name.
Available slash commands may vary, depending on your environment and the context of your chat. To view a list of currently available slash commands, type / in the chat prompt box of your current environment. Below is a list of some of the most common slash commands for using Copilot Chat.
Use chat variables to include specific context in your prompt. To use a chat variable, type # in the chat prompt box, followed by a chat variable.
Chat participants
Chat participants are like domain experts who have a specialty that they can help you with. You can specify a chat participant by typing @ in the chat prompt box, followed by a chat participant name. To see all available chat participants, type @ in the chat prompt box.
Below is a list of some of the most common chat participants for using Copilot Chat.
This version of this article is for Copilot in Visual Studio. For other versions of this article, click the tabs above.
About GitHub Copilot enhancements
You can enhance your experience of Copilot Chat with a variety of commands and options. Finding the right command or option for the task you are working on can help you achieve your goals more efficiently. This cheat sheet provides a quick reference to the most common commands and options for using Copilot Chat.
For information about how to get started with Copilot Chat in Visual Studio, see Asking GitHub Copilot questions in your IDE .
Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by the command name.
Available slash commands may vary, depending on your environment and the context of your chat. To view a list of currently available slash commands, type / in the chat prompt box of your current environment. Below is a list of some of the most common slash commands for using Copilot Chat.
By default, Copilot Chat will reference the file that you have open or the code that you have selected. You can also use # followed by a file name, file name and line numbers, or solution to reference a specific file, lines, or solution.
This version of this article is for Copilot in JetBrains. For other versions of this article, click the tabs above.
About GitHub Copilot enhancements
You can enhance your experience of Copilot Chat with a variety of commands and options. Finding the right command or option for the task you are working on can help you achieve your goals more efficiently. This cheat sheet provides a quick reference to the most common commands and options for using Copilot Chat.
For information about how to get started with Copilot Chat in JetBrains, see Asking GitHub Copilot questions in your IDE .
Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by the command name.
Available slash commands may vary, depending on your environment and the context of your chat. To view a list of currently available slash commands, type / in the chat prompt box of your current environment. Below is a list of some of the most common slash commands for using Copilot Chat.
If you run interactive Copilot CLI sessions in JetBrains, you can also use CLI-specific slash commands from that session.
This version of this article is for Copilot in Xcode. For other versions of this article, click the tabs above.
About GitHub Copilot enhancements
You can enhance your experience of Copilot Chat with a variety of commands and options. Finding the right command or option for the task you are working on can help you achieve your goals more efficiently. This cheat sheet provides a quick reference to the most common commands and options for using Copilot Chat.
For information about how to get started with Copilot Chat in Xcode, see Asking GitHub Copilot questions in your IDE .
Use slash commands to avoid writing complex prompts for common scenarios. To use a slash command, type / in the chat prompt box, followed by the command name.
Available slash commands may vary, depending on your environment and the context of your chat. To view a list of currently available slash commands, type / in the chat prompt box of your current environment. Below is a list of the slash commands for using Copilot Chat.