Share custom prompts for Github Copilot Chat with your team.
Use @customPrompts
to invoke the assistant, then select the desired command.
Add your custom prompts in .vscode/settings.json
as follow:
{
"customPrompts": {
"prompts": [
{
"command": "prefixwithlegacy",
"content": "Rename functions with the 'legacy_' prefix.",
"name": "Refactor: prefix with 'legacy_'", // optional
"description": "Use this to rename functions with the 'legacy_' prefix.", // optional
},
],
},
}
Then, in the chat, enter @customPrompts /load /<command>
to invoke the custom command; e.g. with the example config above: @customPrompts /load /prefixwithlegacy
/load
: Use@customPrompts /load /<command>
to invoke a custom command.
Inspirations: