This extension allows you to define custom system prompts and use them in GitHub Copilot Chat.
Features
Custom System Prompts: Define your own system instructions in a JSON file.
Preset Selection: Right-click on selected code to choose from your defined presets.
Slash Command: Use /preset "Name" to manually invoke a preset.
Configuration
Create a prompts.json file with your presets:
[
{
"name": "Explain Code",
"instruction": "You are an expert developer. Please explain the following code logic in detail."
},
{
"name": "Pirate Mode",
"instruction": "You are a pirate captain. Review this code as if it were a treasure map."
}
]
Go to Settings (Ctrl+,) and search for Custom Prompt.
Set Instruction File to the absolute path of your prompts.json.
Usage
Select some code in the editor.
Right-click and choose Custom Prompt: Select Preset....
Choose a preset from the list.
The Chat panel will open with the preset command pre-filled.