Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Context GatingNew to Visual Studio Code? Get it now.
Context Gating

Context Gating

ocotillo-quill-press-llc

|
6 installs
| (1) | Free
Control which files are included in AI context
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context Gating

Control which files are included in AI context. Visually mark files as excluded and manage them via .contextignore.

Features

  • Visual indicators — Green dot = included, Red dot = excluded
  • Right-click toggle — Toggle any file or folder in Explorer
  • Keyboard shortcut — Cmd+Shift+T (Mac) / Ctrl+Shift+T (Windows/Linux)
  • Status bar — Shows count of excluded files
  • Recursive folders — Toggling a folder affects all contents
  • .contextignore file — Portable, version-controllable exclusion list

Usage

  1. Right-click any file or folder in Explorer
  2. Select "Toggle Context Exclusion"
  3. Red badge = excluded from context
  4. Green badge = included in context

Commands

  • Toggle Context Exclusion — Toggle selected file/folder
  • Context Gating: Show All Excluded Files — View and manage exclusions
  • Context Gating: Include All Files — Clear all exclusions

Keyboard Shortcuts

Command Mac Windows/Linux
Toggle Exclusion Cmd+Shift+T Ctrl+Shift+T

Integration with AI Tools

Other extensions can read the .contextignore file in your workspace root. Format is one path per line, with # for comments.

Release Notes

0.1.0

Initial release.

License

MIT

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