Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Claude Code Terminal SupportNew to Visual Studio Code? Get it now.
Claude Code Terminal Support

Claude Code Terminal Support

nguyentaijs

| (0) | Free
Add files and selections to Claude Code terminal context via right-click menus and keyboard shortcuts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Code Terminal Support

A VS Code extension that bridges your editor and Claude Code CLI. Right-click files or selections to send them as @-references directly into your Claude Code terminal.

Born out of switching from Cursor to Claude Code — this extension brings back some most-missed editor integrations: right-click to send files and selections as prompt context.

Forked from claude-vscode-context-plus by Jeffy Yang (MIT License).

Features

Add files to context

Right-click a file in the explorer or editor tab and select "Add to Claude Code". Sends @path/to/file to the Claude Code terminal. Supports multi-select.

Add file to Claude Code context menu

Send selections

Select code in the editor, right-click, and choose "Send Selection to Claude Code". Sends @path/to/file:startLine-endLine so Claude knows exactly what you're pointing at.

Send selection to Claude Code context menu

Result in terminal

References are typed into the Claude Code terminal input without pressing Enter, so you stay in control.

Terminal showing @ reference

More features

  • Multi-root workspace support — Correctly resolves paths in multi-root workspaces. Files in the terminal's folder use relative paths; files in other folders use absolute paths.
  • Auto-detect Claude Code terminals — Automatically finds terminals named "Claude Code" or matching version patterns (e.g. 1.0.32). Configurable with custom regex patterns.
  • Manual terminal designation — Use the command palette to manually designate any terminal as your Claude Code target.
  • Status bar indicator — Shows when a Claude Code terminal is active. Displays a selection icon when you have text selected, and clicking it sends the selection.

Keyboard Shortcuts

Action Mac Windows
Add current file to context (no selection) Option+Cmd+K Ctrl+Alt+K
Send selection to context (with selection) Option+Cmd+K Ctrl+Alt+K

Both actions share the same shortcut — it sends the selection if you have text selected, otherwise it adds the whole current file. Linux doesn't have a Win-equivalent modifier in VS Code's keybinding syntax, so on Linux you'll need to rebind this via Keyboard Shortcuts settings.

Commands

All commands are available via the command palette (Cmd+Shift+P):

  • Add to Claude Code — Send file(s) as @-references
  • Send Selection to Claude Code — Send selected code with line numbers
  • Set as Claude Code Terminal — Manually designate a terminal
  • Select Claude Code Terminal — Choose between multiple Claude Code terminals

Configuration

Setting Type Default Description
claudeCodeTerminalSupport.terminalNamePatterns string[] [] Additional regex patterns to match terminal names as Claude Code terminals

How It Works

The extension types @-references into your Claude Code terminal input without pressing Enter, so you stay in control. For files it sends @relative/path, and for selections it sends @relative/path:startLine-endLine.

Paths are resolved relative to the Claude Code terminal's working directory. In multi-root workspaces, files in the terminal's folder get short relative paths while files in other workspace folders get absolute paths, so Claude Code always resolves the correct file.

Development
npm install
npm run build        # Build once
npm run watch        # Build on save
npm test             # Run tests

To test in VS Code, press F5 to launch the Extension Development Host.

Building & Installing Locally

npm run package      # Produces claude-code-terminal-support-0.0.3.vsix
code --install-extension claude-code-terminal-support-0.0.3.vsix
# or, in Cursor:
cursor --install-extension claude-code-terminal-support-0.0.3.vsix

Alternatively, install the .vsix from the UI: open the Extensions panel (Ctrl+Shift+X), click the ... menu → Install from VSIX..., and select the generated file.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft