Claude Code in VS Code. The extension that shows changes next to your code before you accept them
How to install the Claude Code extension in VS Code, how the panel differs from the terminal, which settings are shared and whether it works in Cursor and other editors.
Part of the guideClaude Code, the complete guide. From installation to your own skills and plugins
In this article
In short
The Claude Code for VS Code extension from Anthropic gives Claude Code its own panel in the editor, with side by side diffs, @-mentions of files and plan review. It needs VS Code 1.94.0 or later and a paid Claude plan or a Claude Console account. Settings in the ~/.claude/settings.json file are shared with the terminal version.
Claude wants to change three files. In the terminal the changes scroll past as text. In VS Code they open side by side, old code on the left and new on the right, with an accept button for each change. For many people that alone is the reason to use Claude Code in VS Code rather than in a bare terminal.
This page is part of our Claude Code guide. Everything here was checked on the Anthropic page about VS Code, as of 10 November 2026.
Installing Claude Code in VS Code
You need VS Code 1.94.0 or later and an Anthropic account. Any paid Claude plan works, Pro, Max, Ultra, Team or Enterprise, or a Claude Console account. No API key is needed.
- Open the Extensions view with Cmd+Shift+X on a Mac or Ctrl+Shift+X on Windows and Linux.
- Search for Claude Code. The extension is called Claude Code for VS Code and the publisher is Anthropic.
- Click Install. If the extension does not appear, run
Developer: Reload Windowfrom the Command Palette. - Open any file and click the Spark icon in the top right corner of the editor.
- Click Sign in and finish signing in in your browser.
Anthropic publishes the extension on the Visual Studio Marketplace and on the Open VSX Registry. The extension's version number is the Claude Code version it bundles.
What the panel adds over the terminal
The panel sees what you select in the editor. Option+K on a Mac or Alt+K on Windows and Linux inserts a mention with a line range, for example @app.ts#5-10. No need to type paths or line numbers.
In Manual mode every edit opens as a side by side diff with a permission prompt. You can accept it, reject it or tell Claude what to do instead. Since version 2.1.275 each change has its own Accept this change and Reject this change buttons. If you edit the proposed code before accepting, Claude is told the file differs from its proposal.
A plan from plan mode can be read and edited in the panel before Claude starts editing. You can run several conversations at once, in separate tabs or windows. The permission mode is shown and switched at the bottom of the prompt box. Since version 2.1.283 a new conversation starts in Auto mode by default. How the modes differ is covered in what Claude Code is.
The panel does not have everything the terminal has.
| Feature | Terminal | Extension |
|---|---|---|
| Commands and skills | All | A subset, type / to see it |
| MCP servers | Yes | Yes, through /mcp |
| Checkpoints | Yes | Yes |
! shell shortcut | Yes | No |
| Tab completion | Yes | No |
What is shared with the terminal
The ~/.claude/settings.json file is shared by the extension and the terminal. It holds allowed commands, environment variables, hooks and MCP servers. The project's CLAUDE.md files work the same way in both places.
Conversation history is shared as well. A conversation started in the panel can be continued in the terminal with claude --resume, which opens a picker of sessions.
The extension's own settings are separate, under Settings > Extensions > Claude Code. That is where you set preferredLocation, whether Claude opens in the sidebar or a new tab, initialPermissionMode for new conversations, and useTerminal, which starts Claude Code in terminal mode instead of the panel.
The VS Code terminal and the /ide command
The extension carries its own copy of Claude Code, but it does not add a claude command to your system. To type claude in the VS Code terminal, you need the separate terminal install. The steps are in our guides for macOS, Windows and Linux.
With the extension installed, claude started in the integrated terminal connects to it by itself. Changes then open in the VS Code diff viewer, and Claude sees your selection. From an external terminal you connect with /ide.
Cursor and other editors
The Anthropic page has a separate install link for Cursor. The extension also installs in other editors built on VS Code, the docs name Devin Desktop and Kiro, through their Extensions view or from Open VSX. An editor that cannot install the extension still has a terminal, and Claude Code in a terminal works anywhere. How this looks in Google's editor is covered in our post on Claude Code in Antigravity.
Pick the VS Code panel if you read every change before accepting it. Keep the terminal for scripts and the commands the panel lacks, and compare both in terminal, VS Code or Antigravity. If you want to know where AI could take work off people in your business, ask for our free AI audit.
What would you like to change in your business?
Leave your number. We will talk about your process and see whether we can help. The first call is free.
The service this text is about
Automation and AI / OCRAutomation of document re-typing, OCR and checking rules, and your data stays with you.