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
Add a .copilotignore file to the root of your workspace.
List the files or patterns you want to block (e.g., *.js or src/).
Open a file matching the pattern, and Copilot suggestions will be disabled.