Skip to content

Commit e2675a8

Browse files
hubwritersubatoi
andauthored
Copilot personal (UI-based) custom instructions in GitHub.com [GA] (#54566)
Co-authored-by: Ben Ahmady <[email protected]>
1 parent d7523f3 commit e2675a8

8 files changed

+32
-12
lines changed

.vscode/extensions.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
8+
],
9+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
10+
"unwantedRecommendations": [
11+
"ms-vscode-remote.remote-containers"
12+
]
13+
}

content/copilot/customizing-copilot/adding-personal-custom-instructions-for-github-copilot.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ For example, you can choose to always have {% data variables.product.prodname_co
2121

2222
Personal custom instructions apply to conversations that you, as a user, have with {% data variables.product.prodname_copilot_chat_short %} across {% data variables.product.github %}, and are different from repository custom instructions, which apply to conversations in the context of a single repository. For more information on repository instructions, see [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot).
2323

24-
{% data reusables.copilot.repository-vs-personal-instructions-note %}
24+
{% data reusables.copilot.repository-vs-personal-instructions-note %} If you are concerned about response quality, you can also choose to temporarily disable repository instructions. See [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot?tool=webui#enabling-or-disabling-repository-custom-instructions).
2525

2626
## Adding personal custom instructions
2727

28-
1. In the top right of any page on {% data variables.product.github %}, click the **{% octicon "copilot" aria-hidden="true" %}** {% data variables.product.prodname_copilot %} icon next to the search bar.
29-
1. Select the {% octicon "kebab-horizontal" aria-label="Open conversation options" %} dropdown menu at the top of the Chat panel, then click **{% octicon "tools" aria-hidden="true" %} Customize {% data variables.product.prodname_copilot %}**. If in the immersive view, select the {% octicon "kebab-horizontal" aria-label="Feedback and settings" %} dropdown menu at the top right of the page, then click **{% octicon "note" aria-hidden="true" %} Personal instructions**.
28+
You can add personal custom instructions either in the Chat panel or in immersive mode. The same instructions will be applied in both modes.
29+
30+
1. In the top right of any page on {% data variables.product.github %}, either:
31+
* Click the **{% octicon "copilot" aria-label="Copilot" %}** icon to open the {% data variables.product.prodname_copilot_chat_short %} panel.
32+
* Click {% octicon "triangle-down" aria-label="The downwards triangle icon" %} next to the **{% octicon "copilot" aria-label="Copilot" %}** icon, then click **Immersive** to open {% data variables.product.prodname_copilot_chat_short %} in the full-page, immersive mode.
33+
1. Select the {% octicon "kebab-horizontal" aria-label="Open conversation options" %} dropdown menu at the top right of the Chat panel, or immersive page, then click **Personal instructions**.
3034
1. Add natural language instructions to the text box.
3135

32-
The instructions can be written as a single paragraph, each on a new line, or separated by blank lines for legibility.
36+
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.
37+
3338
1. Click **Save**. Your instructions are now active, and will stay active until you change or remove them.

content/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Whenever custom instructions are used by {% data variables.product.prodname_copi
132132

133133
You can click the reference to open the file.
134134

135-
{% data reusables.copilot.repository-vs-personal-instructions-note %}
135+
{% data reusables.copilot.repository-vs-personal-instructions-note %} See [AUTOTITLE](/copilot/customizing-copilot/adding-personal-custom-instructions-for-github-copilot).
136136

137137
{% endwebui %}
138138

@@ -161,6 +161,9 @@ You can choose whether or not to have custom instructions added to your chat que
161161
1. Click the {% octicon "kebab-horizontal" aria-label="Conversation options" %} button at the top of the Chat panel, or the top right of the immersive page.
162162
1. Click **Disable custom instructions** or **Enable custom instructions**.
163163

164+
> [!NOTE]
165+
> In immersive mode, you will only see these options if you have attached a repository that contains a custom instructions file.
166+
164167
Your choice persists until you change it.
165168

166169
{% endwebui %}
@@ -179,7 +182,7 @@ Your choice persists until you change it.
179182

180183
![Screenshot of the {% data variables.product.prodname_vs %} menu bar. The "Tools" menu is expanded, and the "Options" item is highlighted with an orange outline.](/assets/images/help/copilot/vs-toolbar-options.png)
181184

182-
1. In the "Options" dialog, type `custom instructions` in the search box.
185+
1. In the "Options" dialog, type `custom instructions` in the search box, then click **{% data variables.product.prodname_copilot_short %}**.
183186
1. Select or clear the checkbox for **(Preview) Enable custom instructions to be loaded from .github/copilot-instructions.md files and added to requests**.
184187

185188
{% endvisualstudio %}

content/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-chat.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ These instructions are for {% data variables.product.prodname_copilot_short %} o
5454

5555
> [!NOTE] If you use {% data variables.product.prodname_copilot_extensions_short %}, they may override the model you select.
5656
57-
1. In the top right of any page on {% data variables.product.github %}, click the down arrow beside the **{% octicon "copilot" aria-hidden="true" %}** icon and click **Immersive** in the dropdown menu.
57+
1. In the top right of any page on {% data variables.product.github %}, click {% octicon "triangle-down" aria-label="The downwards triangle icon" %} beside the **{% octicon "copilot" aria-hidden="true" %}** icon and click **Immersive** in the dropdown menu.
5858

5959
![Screenshot of the 'Immersive' button, highlighted with a dark orange outline.](/assets/images/help/copilot/copilot-immersive-button.png)
6060

content/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The following instructions are for {% data variables.product.prodname_vscode_sho
4646
1. Type `change completions model` and select the "{% data variables.product.prodname_copilot %}: Change Completions Model" command.
4747
1. In the dropdown menu, select the model you want to use.
4848

49-
Alternatively, if Command Center is enabled, you can click the down arrow beside the **{% octicon "copilot" aria-hidden="true" %}** icon at the top of the {% data variables.product.prodname_vscode_shortname %} window, then click **Configure Code Completions** in the dropdown menu. Then choose **Change Completions Model** in the dropdown menu and select the model you want to use.
49+
Alternatively, if Command Center is enabled, you can click {% octicon "chevron-down" aria-label="The downward-pointing arrowhead" %} beside the **{% octicon "copilot" aria-hidden="true" %}** icon at the top of the {% data variables.product.prodname_vscode_shortname %} window, then click **Configure Code Completions** in the dropdown menu. Then choose **Change Completions Model** in the dropdown menu and select the model you want to use.
5050

5151
## Checking which model is being used
5252

content/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-github.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You can open {% data variables.product.prodname_copilot_chat_short %} from any p
6565

6666
Depending on the question you ask, and your enterprise and organization settings, {% data variables.product.prodname_copilot_short %} may respond using information based on the results of a Bing search. By using Bing search, {% data variables.product.prodname_copilot_short %} can answer a broad range of tech-related questions with up-to-date details based on information currently available on the internet. For information on how to enable or disable Bing search integration, see [AUTOTITLE](/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/managing-copilot-policies-as-an-individual-subscriber#enabling-or-disabling-web-search-for-github-copilot-chat) and [AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise).
6767

68-
1. At the top right of any page on {% data variables.product.github %}, click the down arrow beside the **{% octicon "copilot" aria-hidden="true" %}** icon and click **Immersive** in the dropdown menu.
68+
1. At the top right of any page on {% data variables.product.github %}, click {% octicon "triangle-down" aria-label="The downwards triangle icon" %} beside the **{% octicon "copilot" aria-hidden="true" %}** icon and click **Immersive** in the dropdown menu.
6969

7070
![Screenshot of the 'Immersive' button, highlighted with a dark orange outline.](/assets/images/help/copilot/copilot-immersive-button.png)
7171

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
> [!NOTE]
2-
> * Personal custom instructions for {% data variables.product.prodname_copilot %} are in {% data variables.release-phases.public_preview %} and subject to change.
3-
> * Personal custom instructions are currently only supported for {% data variables.product.prodname_copilot_chat_dotcom %}.
2+
> Personal custom instructions are currently only supported for {% data variables.product.prodname_copilot_chat_dotcom %}.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
> [!NOTE] Personal custom instructions take priority over repository custom instructions, but both are incorporated into the final prompt provided to {% data variables.product.prodname_copilot_chat_short %}. Whenever possible, you should avoid providing conflicting personal and repository instructions. If you are concerned about response quality, you can also choose to temporarily disable repository instructions. For more information, see [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot?tool=webui#enabling-or-disabling-repository-custom-instructions).
1+
> [!NOTE] Personal custom instructions take priority over repository custom instructions, but both are incorporated into the final prompt provided to {% data variables.product.prodname_copilot_chat_short %}. Whenever possible, you should avoid providing conflicting personal and repository instructions.

0 commit comments

Comments
 (0)