Hinweis
Persönliche benutzerdefinierte Anweisungen werden derzeit nur für GitHub Copilot Chat in GitHub unterstützt.
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.
Hinweis
- Es ist möglich, dass mehrere Arten von benutzerdefinierten Anweisungen auf eine Unterhaltung angewendet werden. Persönliche Anweisungen haben höchste Priorität, gefolgt von Repository-Anweisungen und Organisationsanweisungen mit der niedrigsten Priorität. Alle Gruppen relevanter Anweisungen werden jedoch weiterhin kombiniert und für Copilot Chat bereitgestellt.
- Nach Möglichkeit solltest du vermeiden, in Konflikt stehende Anweisungsgruppen bereitzustellen. Wenn du Bedenken hinsichtlich der Antwortqualität hast, kannst du Repositoryanweisungen auch vorübergehend deaktivieren. Weitere Informationen findest du unter 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 https://github.com/copilot and start a conversation.