Skip to main content

Adding personal custom instructions for GitHub Copilot

Customize GitHub Copilot Chat responses to match your personal preferences.

メモ

現在、個人用カスタム命令は GitHub Copilot Chat in 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.

メモ

  • 複数の種類のカスタム命令を会話に適用できます。 個人用命令は最も優先順位が高く、その後にリポジトリ命令、最後に organization 用命令の順になります。 ただし、関連するすべての命令セットは引き続き結合され、Copilot Chat に提供されます。
  • 可能な限り、競合する命令セットを提供しないようにする必要があります。 回答の品質に問題がある場合は、リポジトリ命令を一時的に無効にすることもできます。 「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.

  1. 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.
  2. Select the dropdown menu at the top right of the Chat panel, or immersive page, then click Personal instructions.

  3. 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.

  4. 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.

  5. 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.

Did you successfully add personal custom instructions?

Yes No