Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Custom Copilot ContextNew to Visual Studio Code? Get it now.
Custom Copilot Context

Custom Copilot Context

HollowsDaw

|
2 installs
| (0) | Free
Automatically appends custom prompt from config
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Custom Prompt Extension

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

  1. 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."
        }
    ]
    
  2. Go to Settings (Ctrl+,) and search for Custom Prompt.
  3. Set Instruction File to the absolute path of your prompts.json.

Usage

  1. Select some code in the editor.
  2. Right-click and choose Custom Prompt: Select Preset....
  3. Choose a preset from the list.
  4. The Chat panel will open with the preset command pre-filled.
  5. Add any additional instructions and press Enter.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft