# Claude Code in VS Code: The Extension, Not the CLI

> The extension bundles its own private CLI copy and still does not put claude on your PATH. Here is what it does better than the terminal, and what it cannot do at all.

URL: https://www.matthewswong.com/en/blog/claude-code-vs-code-extension-guide/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-08-27
- Updated: 2026-08-27
- Category: Software Development

> **Key takeaway:** The Claude Code VS Code extension is a graphical client with its own bundled copy of the CLI. Installing it does not put the claude command on your shell PATH — that needs a separate standalone install. The extension and CLI share conversation history, so a session started in one can be resumed in the other.

I installed the extension, used it happily for a week, then opened the integrated terminal to run one CLI-only command and got command not found. The extension had been running Claude Code the whole time, from a private copy it keeps for its own panel. Sharing that binary with my shell was never part of the deal, and nothing had told me otherwise.

That is a small thing that explains a larger one: the extension is a client, not a wrapper. It has features the terminal does not, lacks features the terminal has, and shares the conversation history so you can move between them. This post covers what it genuinely does better, how to reference things into a prompt, the local MCP server and the one non-read-only tool it exposes, the feature gap, and the security note about configuration files that execute themselves.

## A client with its own CLI, that is not your CLI

The extension bundles a private copy of the CLI for its chat panel. Typing the command in a terminal needs the standalone install, and running that once makes every command on the documentation site work in any terminal — including the ones you will need for MCP configuration, which is only partially available in the panel.

The two share conversation history, which is the part worth exploiting. A conversation started in the panel can be continued in the terminal by resuming it, which opens a picker to search for and select it. That makes the feature gap much less painful than it sounds: when you hit something the panel cannot do, you move that one conversation rather than starting again.

> With auto-edit permissions on, Claude Code can modify VS Code configuration files that VS Code may execute automatically. The mitigations are specific rather than general: enable Restricted Mode for untrusted workspaces, prefer Manual mode over auto or edit-automatically, and review changes before accepting. Note that on Pro, Max and Team plans, Auto is the extension's built-in starting permission mode — so this is the default state, not an opt-in.

## What the panel genuinely does better

Four things are meaningfully better here than in a terminal, and one of them changed how I use plan mode:

- Plan mode opens the plan as a full Markdown document where you add inline comments before Claude begins. Commenting on a specific paragraph of a plan is a much better review mechanism than replying in prose about it.
- Focus view hides tool calls, results and thinking behind expandable rows, leaving your prompts and Claude's responses. The latest to-do list stays visible, and so does the text a pending question is about.
- Side questions ask about the session without adding to the conversation. The answer opens in a panel beside the chat, survives window reloads, and keeps the newest twenty exchanges.
- Multiple conversations in tabs, windows or the sidebar, organised into groups, with searchable history and AI-generated titles.

## Getting things into the prompt

The referencing is the other place the graphical client wins, because it can see what your editor is doing. The terminal-output mention is the one I use most and the one people are most surprised exists.

> The selection indicator in the footer is a toggle, not just a readout. Clicking it controls whether Claude can see your highlighted text, and the eye-slash icon means the selection is hidden. That is the fix for the awkward moment when you have a block of something sensitive selected and want to ask an unrelated question without closing the file first.

## The IDE MCP server, and its two visible tools

Like the JetBrains plugin, the extension runs a local MCP server the CLI connects to. It is hidden from the MCP list because there is nothing to configure, which means the people who need to know it exists — anyone allowlisting MCP tools in a hook — are the least likely to find it by accident.

## The Jupyter tool, and its second gate

This is the one non-read-only tool the model can see in VS Code, and the way it is fenced is worth studying as a design pattern rather than just a feature. The permission system can let Claude propose running code; a human in VS Code is what lets it actually run.

> That two-gate design is the answer to a question people ask about agentic tools generally: how do you allow a capability without allowing it unattended. The allowlist grants the proposal, the native picker grants the execution, and the two live in different systems so neither can be configured into granting both. Worth copying if you are building anything similar.

## What only the terminal has

The gap is small but specific, and knowing it saves you looking for something that is not there.

| Feature | CLI | VS Code extension |
| --- | --- | --- |
| Commands and skills | All of them | A subset — type slash to see what is available |
| MCP server configuration | Full | Partial — add servers via the CLI, manage existing ones in the panel |
| The bang shell shortcut | Yes | No |
| Tab completion | Yes | No |

## Checkpoints, and opening a tab from anywhere

Checkpoints work in the extension and are more discoverable there than in the terminal: hover any message and you get three distinct options, which is a genuinely better model than a single rewind. You can fork the conversation from that point while keeping all code changes, rewind the code while keeping the whole conversation, or do both at once. Those are three different intentions and they deserve three different buttons.

The extension also registers a URI handler, which is the underrated bit of plumbing here. Opening that URL from a shell alias, a bookmarklet or any script starts a new Claude Code tab — launching VS Code first if it is not running, or using the focused window if it is. That is how you wire Claude Code into tooling that has nothing to do with VS Code.

Use the panel for the work where seeing things matters — reviewing a plan you can annotate, scanning a diff, keeping four conversations in tabs — and drop to the terminal for the handful of things only it can do. The single setup step worth doing on day one is the standalone CLI install, because without it the terminal escape hatch is not there when you need it, and the error you get says nothing about why.

## Sources & further reading

- Claude Code docs — Use Claude Code in VS Code
- Claude Code docs — Checkpointing
- Claude Code docs — Permission modes
- Claude Code docs — Set up Claude Code
- Claude Code docs — Interactive mode and side questions
- Claude Code docs — Deep links
- Claude Code docs — Data and privacy
- VS Code docs — Workspace Trust and Restricted Mode

## Source links

- https://code.claude.com/docs/en/vs-code
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/permission-modes
- https://code.claude.com/docs/en/setup
- https://code.claude.com/docs/en/interactive-mode
- https://code.claude.com/docs/en/deep-links
- https://code.claude.com/docs/en/data-usage
- https://code.visualstudio.com/docs/editor/workspace-trust

## FAQ

### Does installing the Claude Code VS Code extension add claude to my PATH?

No. The extension bundles a private copy of the CLI for its own chat panel, but typing claude in a terminal requires the separate standalone install. Run that once and every CLI command works in any terminal, including claude mcp add and claude --resume, which you will need for the panel's CLI-only gaps.

### What can the model do through the VS Code IDE MCP server?

Two tools are visible to it. getDiagnostics is read-only and returns the errors and warnings from the Problems panel. executeCode runs Python in the active Jupyter notebook's kernel and is not read-only. The server hosts about a dozen tools; the rest are internal RPC filtered out before the tool list reaches Claude.

### Can Claude run Jupyter cells without asking in VS Code?

No. On every call the code is inserted as a new cell at the end of the active notebook, VS Code scrolls it into view, and a native Quick Pick asks you to Execute or Cancel. That confirmation is separate from PreToolUse hooks: an allowlist entry lets Claude propose running a cell, and the Quick Pick is what lets it actually run.

### What can the CLI do that the VS Code extension cannot?

Four things. The CLI has all commands and skills while the extension has a subset, full MCP server configuration while the extension can only manage existing servers, the bang shell shortcut, and tab completion. Since both share conversation history, you can resume a panel conversation in the terminal when you need one of them.

### How do I stop Claude seeing my current selection in VS Code?

Click the selection indicator in the prompt box footer to toggle it — the eye-slash icon means the selection is hidden from Claude. For a file that should never be shared this way, add a Read deny rule for its path, which blocks both the selected text and the open-file notice.

---

- HTML version: https://www.matthewswong.com/en/blog/claude-code-vs-code-extension-guide/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/claude-code-vs-code-extension-guide/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
