Open
Description
https://code.visualstudio.com/docs/copilot/copilot-customization#_use-instructionsmd-files
To use an instructions file for a chat prompt, you can either:
In the Chat view, select Add Context > Instructions and select the instruction file from the Quick Pick.
Run the Chat: Attach Instructions command from the Command Palette (⇧⌘P) and select the instruction file from the Quick Pick.
Configure the applyTo property in the instruction file header to automatically apply the instructions to specific files or folders.
Custom instruction is wonderful. But if we have to manually add instruction to the context, the use of applyTo is somewhat limited. (Also, in current flow, I'm having hard time finding out which instruction is filtered out by applyTo
)
What if we can combine 'applyTo' and settings.json for more automatic instruction selecting? Like
"github.copilot.chat.codeGeneration.instructions": [
...,
{
"file": ".github/instructions/**.md" // all instruction is used by default, filtered by applyTo
}
],