Skip to content

Commit 4a553bd

Browse files
committed
File-based custom instructions GA
1 parent 7a9c6d8 commit 4a553bd

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

docs/copilot/copilot-customization.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,19 @@ To create a user prompt file:
239239

240240
### Custom instructions settings
241241

242-
* `setting(github.copilot.chat.codeGeneration.instructions)` _(Experimental)_: A set of instructions that will be added to Copilot requests that generate code.
243-
* `setting(github.copilot.chat.codeGeneration.useInstructionFiles)` _(Preview)_: Controls whether code instructions from `.github/copilot-instructions.md` are added to Copilot requests.
244-
* `setting(github.copilot.chat.testGeneration.instructions)` _(Experimental)_: A set of instructions that will be added to Copilot requests that generate tests.
245-
* `setting(github.copilot.chat.reviewSelection.instructions)` _(Preview)_: A set of instructions that will be added to Copilot requests for reviewing the current editor selection.
246-
* `setting(github.copilot.chat.commitMessageGeneration.instructions)` _(Experimental)_: A set of instructions that will be added to Copilot requests that generate commit messages.
242+
* `setting(github.copilot.chat.codeGeneration.useInstructionFiles)`: controls whether code instructions from `.github/copilot-instructions.md` are added to Copilot requests.
243+
* `setting(github.copilot.chat.codeGeneration.instructions)` _(Experimental)_: set of instructions that will be added to Copilot requests that generate code.
244+
* `setting(github.copilot.chat.testGeneration.instructions)` _(Experimental)_: set of instructions that will be added to Copilot requests that generate tests.
245+
* `setting(github.copilot.chat.reviewSelection.instructions)` _(Preview)_: set of instructions that will be added to Copilot requests for reviewing the current editor selection.
246+
* `setting(github.copilot.chat.commitMessageGeneration.instructions)` _(Experimental)_: set of instructions that will be added to Copilot requests that generate commit messages.
247247

248248
### Prompt files (experimental) settings
249249

250250
* `setting(chat.promptFiles)` _(Experimental)_: enable prompt file locations. Use the `{ "/path/to/folder": boolean }` notation to specify a specific path and whether it's enabled or not. Relative paths are resolved from the root folder(s) of your workspace.
251251

252252
| Setting value | Description |
253253
|---------------|-------------|
254-
| `{ "/path/to/folder": boolean }` | Enable prompt files for a specific path. Specify one or more folders where prompt files are located. Relative paths are resolved from the root folder(s) of your workspace.<br/>By default, `.github/prompts` is added but disabled. |
254+
| `{ "/path/to/folder": boolean }` | enable prompt files for a specific path. Specify one or more folders where prompt files are located. Relative paths are resolved from the root folder(s) of your workspace.<br/>By default, `.github/prompts` is added but disabled. |
255255

256256
## Related content
257257

docs/copilot/copilot-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ The team is continuously working on improving Copilot in VS Code and adding new
7171

7272
## Customize Copilot prompts
7373

74+
* `setting(github.copilot.chat.codeGeneration.useInstructionFiles)`: Controls whether code instructions from `.github/copilot-instructions.md` are added to Copilot requests.
7475
* `setting(github.copilot.chat.codeGeneration.instructions)` _(Experimental)_: A set of instructions that will be added to Copilot requests that generate code.
75-
* `setting(github.copilot.chat.codeGeneration.useInstructionFiles)` _(Preview)_: Controls whether code instructions from `.github/copilot-instructions.md` are added to Copilot requests.
7676
* `setting(github.copilot.chat.testGeneration.instructions)` _(Experimental)_: A set of instructions that will be added to Copilot requests that generate tests.
7777
* `setting(github.copilot.chat.reviewSelection.instructions)` _(Preview)_: A set of instructions that will be added to Copilot requests for reviewing the current editor selection.
7878
* `setting(github.copilot.chat.commitMessageGeneration.instructions)` _(Experimental)_: A set of instructions that will be added to Copilot requests that generate commit messages.

docs/copilot/copilot-vscode-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ With reusable prompt files, you can specify common prompt instructions and relev
144144

145145
| Action | Description |
146146
|--------|-------------|
147-
| File-based instructions _(Preview)_ | Define shared instructions for code generation in a `.github/copilot-instructions.md` file in your workspace. These common instructions supplement your own personal code-generation instructions. |
147+
| File-based instructions | Define shared instructions for code generation in a `.github/copilot-instructions.md` file in your workspace. These common instructions supplement your own personal code-generation instructions. |
148148
| Code-review instructions _(Preview)_ | Define instructions for using Copilot to review an editor selection in settings or import from a file. You can define language-specific instructions. |
149149
| Code-generation instructions _(Experimental)_ | Define instructions for code generation with GitHub Copilot in settings or import from a file. You can define language-specific instructions. |
150150
| Test-generation instructions _(Experimental)_ | Define instructions for test generation with GitHub Copilot in settings or import from a file. You can define language-specific instructions. |

release-notes/v1_98.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Welcome to the February 2025 release of Visual Studio Code. There are many updat
2424
* [Linux custom title bar](#custom-title-bar-on-linux) - Custom title bar support for Linux enabled by default.
2525
* [Unresolved diagnostics (preview)](#diagnostics-commit-hook-experimental) - Prompt when committing with unresolved diagnostics.
2626
* [Soft-delete in source control](#discard-untracked-changes-improvements) - Move untracked files to trash instead of deleting them.
27+
* [Custom instructions GA](#custom-instructions-generally-available) - Use custom instructions to tailor Copilot to your needs.
2728

2829
>If you'd like to read these release notes online, go to [Updates](https://code.visualstudio.com/updates) on [code.visualstudio.com](https://code.visualstudio.com).
2930
**Insiders:** Want to try new features as soon as possible? You can download the nightly [Insiders](https://code.visualstudio.com/insiders) build and try the latest updates as soon as they are available.
@@ -95,12 +96,22 @@ With the `setting(chat.renderRelatedFiles)` setting, you can enable getting sugg
9596

9697
![Screenshot that shows the updated Copilot Edits attachments and changed files user experience.](images/1_98/copilot_edits_ui.png)
9798

98-
### Removed Copilot Edits limits
99+
#### Removed Copilot Edits limits
99100

100101
Previously, you were limited to attach 10 files to your prompt in Copilot Edits. With this release, we removed this limit. Additionally, we've removed the client-side rate limit of 14 interactions per 10 minutes.
101102

102103
> Note that service-side usage rate limits still apply.
103104
105+
### Custom instructions generally available
106+
107+
**Setting**: `setting(github.copilot.chat.codeGeneration.useInstructionFiles)`
108+
109+
Custom instructions enable you to tailor GitHub Copilot to provide chat responses and code suggestions to the way you and your team work. Describe your specific requirements Markdown format in a `.github/copilot-instructions.md` file in your workspace.
110+
111+
This milestone, we are making custom instructions with `.github/copilot-instructions.md` generally available. Make sure that the `setting(github.copilot.chat.codeGeneration.useInstructionFiles)` VS Code setting is enabled, and Copilot will then use these instructions when generating responses.
112+
113+
Learn more about [custom instructions in Copilot](https://code.visualstudio.com/docs/copilot/copilot-customization).
114+
104115
### Smoother authentication flows in chat
105116

106117
If you host your source code in a GitHub repository, you're able to leverage several features, including advanced code searching, the `@github` chat participant, and more!

0 commit comments

Comments
 (0)