Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude ToggleNew to Visual Studio Code? Get it now.
Claude Toggle

Claude Toggle

Wei-Tsung Lin

|
1 install
| (0) | Free
Toggle between Claude Code and the previously selected editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Toggle

A small VS Code / Cursor extension that toggles focus between the Claude Code panel and your previously active editor with a single keypress.

Features

Running the Toggle Claude Code command (claudeToggle.toggle):

  • Claude is focused → returns to the previously used editor.
  • Text is selected → sends the selection to Claude as an @-mention (creating the Claude panel first if needed).
  • No selection → focuses the existing Claude panel, or opens one if none exists.

The extension reuses an existing Claude panel after a window reload rather than creating a duplicate.

Requirements

Requires the official Claude Code extension (anthropic.claude-code). Claude Toggle relies on Claude Code's webview panel and a few of its commands.

Keyboard shortcut

The Toggle Claude Code command comes with a default keybinding:

Platform Shortcut
macOS Cmd+Shift+;
Windows / Linux Ctrl+Shift+;

This combination was chosen to avoid clashing with common editor shortcuts and with Claude Code's own bindings. If it conflicts with something in your setup, you can rebind it:

Change the shortcut (Keyboard Shortcuts UI)

  1. Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux).
  2. Run Preferences: Open Keyboard Shortcuts.
  3. Search for Toggle Claude Code.
  4. Double-click the current binding and press the key combination you want.

Change the shortcut (keybindings.json)

Run Preferences: Open Keyboard Shortcuts (JSON) and add an entry with your preferred key:

{
  "key": "cmd+shift+;",         // use "ctrl+shift+;" on Windows/Linux
  "command": "claudeToggle.toggle"
}

Usage

Press the shortcut to toggle between Claude Code and your editor. You can also run Toggle Claude Code from the Command Palette at any time.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft