Skip to main content

Fiche de contrôle du chat de GitHub Copilot

Utilisez cet aide-mémoire pour référencer rapidement les commandes et options les plus courantes pour l'utilisation de GitHub Copilot Chat.

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.

Slash commands

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.

CommandDescription
/docGenerate documentation for this symbol.
/explainProvide an explanation for the selected code.
/fixSuggest fixes for code errors and typos.
/simplifySimplify the current code selection.
/testsCreate a unit test for the current code selection.