You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/concepts/prompting/response-customization.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,6 @@ You can use three types of repository custom instructions in {% data variables.p
48
48
49
49
{% data reusables.copilot.custom-instructions-about %}
50
50
51
-
{% data reusables.copilot.repository-custom-instructions-support %}
52
-
53
51
## About organization custom instructions
54
52
55
53
{% data reusables.copilot.custom-instructions-org-support %}
@@ -71,7 +69,7 @@ The following list shows the complete order of precedence, with instructions hig
71
69
72
70
***Personal** instructions
73
71
***Repository** custom instructions:
74
-
***Path-specific** instructions in any applicable `.github/instructions/**/NAME.instructions.md` file
72
+
***Path-specific** instructions in any applicable `.github/instructions/**/*.instructions.md` file
75
73
***Repository-wide** instructions in the `.github/copilot-instructions.md` file
76
74
***Agent** instructions (for example, in an `AGENTS.md` file)
77
75
***Organization** custom instructions
@@ -132,8 +130,6 @@ You can use three types of repository custom instructions in {% data variables.p
132
130
133
131
{% data reusables.copilot.custom-instructions-about %}
134
132
135
-
{% data reusables.copilot.repository-custom-instructions-support %}
136
-
137
133
## About prompt files
138
134
139
135
> [!NOTE] Prompt files are {% data variables.release-phases.public_preview %} and subject to change.
@@ -225,16 +221,14 @@ You can use two types of repository custom instructions in {% data variables.pro
225
221
226
222
***Path-specific custom instructions**, which apply to requests made in the context of files that match a specified path.
227
223
228
-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository.
224
+
These are specified in one or more `NAME.instructions.md` files within or below the `.github/instructions` directory in the repository.
229
225
230
226
By using path-specific instructions you can avoid overloading your repository-wide instructions with information that only applies to files of certain types, or in certain directories.
231
227
232
-
See the table below for details of support for each of these types of repository custom instructions across different {% data variables.product.prodname_copilot_short %} features.
228
+
For details of support for each of these types of repository custom instructions across different {% data variables.product.prodname_copilot_short %} features, see [AUTOTITLE](/copilot/reference/custom-instructions-support).
233
229
234
230
For a curated collection of examples, see [AUTOTITLE](/copilot/tutorials/customization-library/custom-instructions).
235
231
236
-
{% data reusables.copilot.repository-custom-instructions-support %}
237
-
238
232
## About prompt files
239
233
240
234
Prompt files let you build and share reusable prompt instructions with additional context. A prompt file is a Markdown file, stored in your workspace, that mimics the existing format of writing prompts in {% data variables.copilot.copilot_chat_short %} (for example, `Rewrite #file:x.ts`). This allows blending natural language instructions, additional context, and even linking to other prompt files as dependencies.
@@ -317,7 +311,9 @@ While custom instructions help to add codebase-wide context to each AI workflow,
317
311
318
312
In JetBrains IDEs, repository custom instructions consist of a single file, `.github/copilot-instructions.md`, that you create in a repository. The instructions you add to the file should be short, self-contained statements that add context or relevant information to supplement a {% data variables.product.prodname_copilot_short %} prompt.
319
313
320
-
{% data reusables.copilot.repository-custom-instructions-support %}
314
+
### Support for repository custom instructions
315
+
316
+
For details of which types of custom instructions are supported across various environments, see [AUTOTITLE](/copilot/reference/custom-instructions-support).
321
317
322
318
### Use cases for custom instructions
323
319
@@ -411,7 +407,9 @@ For a curated collection of examples, see [AUTOTITLE](/copilot/tutorials/customi
411
407
412
408
In Xcode, repository custom instructions consist of a single file, `.github/copilot-instructions.md`, that you create in a repository. The instructions you add to the file should be short, self-contained statements that add context or relevant information to supplement a {% data variables.product.prodname_copilot_short %} prompt.
413
409
414
-
{% data reusables.copilot.repository-custom-instructions-support %}
410
+
### Support for repository custom instructions
411
+
412
+
For details of which types of custom instructions are supported across various environments, see [AUTOTITLE](/copilot/reference/custom-instructions-support).
Copy file name to clipboardExpand all lines: content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ Once saved, these instructions will apply to the current project in Eclipse that
217
217
218
218
***Path-specific custom instructions**, which apply to requests made in the context of files that match a specified path.
219
219
220
-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions).
220
+
These are specified in one or more `NAME.instructions.md` files within or below the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions).
221
221
222
222
If the path you specify matches a file that {% data variables.product.prodname_copilot_short %} is working on, and a repository-wide custom instructions file also exists, then the instructions from both files are used. You should avoid potential conflicts between instructions as {% data variables.product.prodname_copilot_short %}'s choice between conflicting instructions is non-deterministic.
223
223
@@ -253,7 +253,7 @@ Once saved, these instructions will apply to the current project in Eclipse that
253
253
254
254
***Path-specific custom instructions**, which apply to requests made in the context of files that match a specified path.
255
255
256
-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-1).
256
+
These are specified in one or more `NAME.instructions.md` files within or below the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-1).
257
257
258
258
If the path you specify matches a file that {% data variables.product.prodname_copilot_short %} is working on, and a repository-wide custom instructions file also exists, then the instructions from both files are used.
259
259
@@ -290,7 +290,7 @@ Once saved, these instructions will apply to the current project in Eclipse that
290
290
291
291
***Path-specific custom instructions**, which apply to requests made in the context of files that match a specified path.
292
292
293
-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-2).
293
+
These are specified in one or more `NAME.instructions.md` files within or below the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-2).
294
294
295
295
If the path you specify matches a file that {% data variables.product.prodname_copilot_short %} is working on, and a repository-wide custom instructions file also exists, then the instructions from both files are used.
296
296
@@ -320,7 +320,7 @@ Once saved, these instructions will apply to the current project in Eclipse that
320
320
321
321
***Path-specific custom instructions** apply to requests made in the context of files that match a specified path.
322
322
323
-
These are specified in one or more `NAME.instructions.md` files within the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-2).
323
+
These are specified in one or more `NAME.instructions.md` files within or below the `.github/instructions` directory in the repository. See [Creating path-specific custom instructions](#creating-path-specific-custom-instructions-2).
324
324
325
325
If the path you specify matches a file that {% data variables.product.prodname_copilot_short %} is working on, and a repository-wide custom instructions file also exists, then the instructions from both files are used.
0 commit comments