Feature: Keyboard shortcut to toggle IDE context sharing

Resolved 💬 2 comments Opened Mar 13, 2026 by matzkoh Closed Mar 13, 2026

Summary

When Claude Code is connected to an IDE (VS Code, Cursor, etc.), the current editor selection is automatically sent as context with every prompt. There is no quick way to toggle this on/off — the only option is the /ide slash command, which requires typing and interrupts flow.

Use Case

  • I want IDE context off by default to avoid sending irrelevant selections
  • When I need to reference a specific selection, I want to quickly toggle it on, send my prompt, then toggle it off again
  • This needs to be a keyboard shortcut (e.g., Ctrl+I), not a slash command

Current Behavior

  • /ide is the only way to toggle IDE integration on/off
  • The setting does not persist across sessions (#1703)
  • There is no keybinding action (e.g., app:toggleIde) available in ~/.claude/keybindings.json

Proposed Solution

Add a keybinding action like app:toggleIdeContext that can be:

  1. Bound to a custom shortcut via ~/.claude/keybindings.json
  2. Assigned a sensible default (e.g., Ctrl+I or Meta+I)

This is distinct from the persistence request in #1703 — this is about runtime toggling during a session with minimal friction.

Environment

  • Claude Code CLI in VS Code integrated terminal and iTerm2
  • Both automatically connect to the IDE, but there's no quick way to temporarily disable context sharing

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗