Remarque
Les instructions personnalisées ne sont actuellement prises en charge que pour GitHub Copilot Chat dans GitHub.
For an overview of the methods you can use to customize GitHub Copilot Chat responses, see About customizing GitHub Copilot Chat responses.
About personal custom instructions for GitHub Copilot Chat
You can add custom instructions for GitHub Copilot Chat in order to receive chat responses that are customized to your personal preferences, across your conversations on the GitHub website. For example, you can choose to always have Copilot Chat respond in a preferred language or with a particular style. Some examples of instructions you could add are:
Always respond in Spanish.
Your style is a helpful colleague, minimize explanations but provide enough context to understand the code.
Always provide examples in TypeScript.
Remarque
- Il est possible que plusieurs types d’instructions personnalisées s’appliquent à une conversation. Les instructions personnelles prennent la priorité la plus élevée, suivies des instructions de référentiel, avec des instructions d’organisation classées en dernier. Cependant, toutes les séries d'instructions pertinentes sont toujours combinées et fournies à Copilot Chat.
- Dans la mesure du possible, évitez de donner des instructions contradictoires. Si vous êtes préoccupé par la qualité de la réponse, vous pouvez également choisir de désactiver temporairement les instructions de référentiel. Consultez Adding repository custom instructions for GitHub Copilot.
Adding personal custom instructions
You can add personal custom instructions either in the Chat panel or in immersive mode. The same instructions will be applied in both modes.
-
In the top right of any page on GitHub, either:
- Click the icon to open the full-page, immersive mode of Copilot Chat.
- Click next to the icon, then click Assistive to open the Copilot Chat panel.
-
Select the dropdown menu at the top right of the Chat panel, or immersive page, then click Personal instructions.
-
Add natural language instructions to the text box.
You can write your instructions in any format you prefer. For example, you can write them as a single block of text, each on a new line, or separated by blank lines.
-
Optionally, click to view templates you can use for common instructions. If you click on one of the boxes, such as "Communication", instructions will be added to the text box with placeholders, such as
{format}
that you can replace with your preferences. -
Click Save. Your instructions are now active, and will stay active until you change or remove them.
To see your instructions in action, go to http://github.com/copilot and start a conversation.