Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copilot BlockerNew to Visual Studio Code? Get it now.
Copilot Blocker

Copilot Blocker

Sri Sakthi

|
10 installs
| (1) | Free
Disables Copilot suggestions for .copilotignore file in your workspace.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copilot Blocker

Overview

Copilot Blocker is a Visual Studio Code extension that disables GitHub Copilot suggestions for files listed in the .copilotignore file in your workspace.

Why Use Copilot Blocker?

GitHub Copilot is a powerful tool, but there are scenarios where its suggestions might pose risks. Here’s why you might want to use Copilot Blocker:

  • Prevent Security Risks: Copilot may inadvertently suggest sensitive or proprietary code for files you intend to ignore. This can lead to potential security concerns.
  • Control Suggestions: Copilot Blocker ensures that files listed in the .copilotignore file are treated as off-limits, preventing Copilot from generating suggestions for them.
  • Extension-Specific Behavior: Files listed in .copilotignore will be treated as plain text files by Visual Studio Code. This behavior is specific to the extension and is designed to block Copilot suggestions effectively.
  • Flexible Options: If you want to ignore extension specific behavior, you can:
    • Temporarily disable Copilot while working on those files.

This extension is a precautionary tool for users who prioritize strict control over Copilot's behavior.

Features

  • Automatically detects .copilotignore files.
  • Blocks Copilot suggestions for specified files.
  • Lightweight and easy to use.

How to Use

  1. Add a .copilotignore file to the root of your workspace.
  2. List the files or patterns you want to block (e.g., *.js or src/).
  3. Open a file matching the pattern, and Copilot suggestions will be disabled.

Installation

Install the extension from the Visual Studio Code Marketplace.

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