claude-code - 💡(How to fix) Fix VS Code extension: keyboard shortcut to toggle the active-file context chip

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

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.

Root Cause

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.

RAW_BUFFERClick to expand / collapse

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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING