Claude Code in VS Code: install, first prompt and fixes

The VS Code extension puts Claude Code in a panel next to your code, with diffs you can read before accepting. It is the same Claude Code underneath, with a few differences from the terminal version that trip people up. Here is the short path from install to a first useful prompt, and what to check when something is missing.

Before you install

Install and open it

  1. Press Ctrl+Shift+X (Cmd+Shift+X on Mac), search for Claude Code and click Install. It also installs in other VS Code-based editors such as Cursor; if one can't install it at all, run the CLI in that editor's terminal instead.
  2. If nothing appears afterwards, restart VS Code or run Developer: Reload Window from the Command Palette (Ctrl+Shift+P).
  3. Open the panel with the Spark icon at the top right of the editor. That icon only shows when a file is open. Other ways in: the Spark icon in the Activity Bar (it lists your sessions), the Command Palette (type “Claude Code”), or ✻ Claude Code in the Status Bar, which works even with no file open.
  4. Click Sign in and finish in your browser. If you set ANTHROPIC_API_KEY in your shell but still see the sign-in screen, VS Code may not have inherited your environment: start it from a terminal with code ., or sign in with your account.

Your first prompt

Ask the way you would in the terminal: explain this function, find why this test fails, make this change. Two things help right away:

Give it the right context

Resume, rewind, branch

Shortcuts worth knowing

Extension or CLI?

As we read the docs, the extension supports a subset of commands and skills (type / to see yours), and a few terminal conveniences are CLI only, such as the ! shell shortcut and tab completion. To use the full CLI without leaving VS Code, open the integrated terminal with Ctrl+` (Cmd+` on Mac) and run claude; it connects to the editor for diffs and diagnostics. From an external terminal, run /ide to connect it to VS Code. See also the slash commands worth knowing and terminal setup.

When something is missing

All the guides are in the guides index. If you are new to all of this, start with how Claude Code works and everyday workflows; MCP servers and plugins work here too: add an MCP server, install plugins. This follows Anthropic's VS Code documentation as we read it in October 2026, shortened on purpose. We are not affiliated with Anthropic. We wrote this from the documentation and have not tested every setup or operating system. The extension changes often, many features are limited to recent versions, and where this page and the documentation disagree, the documentation wins.

See also: Claude Code in JetBrains IDEs.

The free loop-stop skill gives long tasks a limit and a stop rule. If you want a second pair of eyes on your CLAUDE.md and settings, the Tune-Up Kit is a checklist for exactly that.