Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copilot Instructions InjectorNew to Visual Studio Code? Get it now.
Copilot Instructions Injector

Copilot Instructions Injector

Dogmans

|
42 installs
| (0) | Free
Adds a default copilot-instructions.md file to workspaces based on a user-selected template.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copilot Instructions Injector

Overview

The Copilot Instructions Injector is a Visual Studio Code extension designed to streamline the process of adding a default copilot-instructions.md file to your workspace. This file is based on a user-selected template and can be customized to suit your needs.

Features

  • Automatic File Injection: Automatically injects a copilot-instructions.md file into your workspace if it is missing.
  • Source File Monitoring: Watches the source file for changes and prompts to update the target file if the source file is newer.
  • File Picker for Source Path: Allows users to set the source file path using a file picker dialog, making configuration easier.
  • Customizable Target Path: Lets users specify the target file name.
  • Folder Creation: Ensures the target folder (i.e. .github) exists before copying the file.
  • User Prompts: Prompts users to create or update the target file when necessary, ensuring a smooth workflow.
  • Command Palette Integration: Provides commands accessible via the Command Palette for managing the extension's functionality.

Commands

  • Copilot: Add Instructions File
    • Injects the copilot-instructions.md file into the workspace.
  • Copilot: Set Instructions File
    • Allows you to set the path to the source template file.
  • Copilot: Browse Source Path
    • Opens a file picker to select the source template file.

Settings

  • copilotInstructions.sourcePath
    • Path to the default copilot-instructions.md file to copy into new workspaces.
  • copilotInstructions.targetName
    • The name of the target file to copy the instructions to (default: copilot-instructions.md).

Installation

  1. Download the .vsix file from the release page.
  2. Open Visual Studio Code.
  3. Go to the Extensions view (Ctrl+Shift+X).
  4. Click on the ... menu in the top-right corner and select Install from VSIX....
  5. Select the downloaded .vsix file to install the extension.

Usage

  1. Configure the source path and target name in the extension settings.
  2. Use the commands from the Command Palette (Ctrl+Shift+P) to manage the instructions file.

License

This extension is licensed under the MIT License. See the LICENSE file for details.

Icon

The extension icon represents a syringe injecting instructions, symbolizing the functionality of the extension.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft