VS Code extension: keyboard shortcut to toggle the active-file context chip
Summary
In the VS Code (native) extension, the prompt input box auto-attaches the currently open file as a context chip (e.g. main.py) at the bottom. The only way to toggle it off is to click the eye icon with the mouse — there's no keyboard shortcut for it.
Friction
This is a very minor annoyance, not a big deal. But when you're deliberately trying to keep context lean, or the open file just isn't relevant to what you're asking, having to reach for the mouse to drop the chip is a small repeated friction. A keybinding would let you stay on the keyboard.
Request
A bindable command (e.g. claude-vscode.toggleActiveFileContext) to toggle the active-file context attachment for the next message, so it can be rebound in VS Code's Keyboard Shortcuts editor like the other extension commands (claude-vscode.focus, claude-vscode.insertAtMention, etc.).
A persistent setting to control auto-attach would also solve this, but that's tracked separately in #24726 — this issue is specifically about a keyboard shortcut for the per-message toggle.
Environment
- Claude Code VS Code extension
- macOS
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗