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)
- Open the Command Palette (
Cmd+Shift+P on macOS, Ctrl+Shift+P on
Windows/Linux).
- Run Preferences: Open Keyboard Shortcuts.
- Search for Toggle Claude Code.
- 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