# Claude Code VS Code Extension

> Claude Code in a side panel of VS Code. You see each change and accept it.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Claude Code in VS Code, anthropic.claude-code, Claude Code for Cursor, Option+K, Alt+K

## Think of it like

It is like a helper who sits at your desk with you.

## Definition

The Claude Code VS Code extension puts Claude Code in a panel inside the VS Code editor. It shows planned changes as diffs you can accept or edit. You can point it at files and line ranges with an @ mention. It carries its own copy of Claude Code, so the panel works without the separate command line install. It also installs in Cursor, and you sign in with a Claude plan or a Console account.

## Example

Sara selects lines 10 to 40 of a file in VS Code and asks in the panel why they are slow. Claude replies with a diff she can accept.

## Example code

```bash
code --install-extension anthropic.claude-code
```

Install the extension from the shell. You can also search the Extensions view.

## Why it matters

Most people write code in an editor. The panel keeps Claude next to the code, and changes show as diffs, not as walls of text.

## Common mistake

Thinking the extension also adds claude to the VS Code terminal. For that, you install the command line tool as well.

## Three principles

- **A panel, not a terminal.** Chat beside your code.
- **Diffs to review.** Accept or edit each change.
- **Carries its own copy.** No separate install for the panel.

## Related terms

- [Claude Code Surface](https://learn.benibix.com/term/ai/claude-code-surface)
- [Visual Studio Code](https://learn.benibix.com/term/development/visual-studio-code)
- [Editor Extension](https://learn.benibix.com/term/development/editor-extension)
- [Cursor](https://learn.benibix.com/term/ai/cursor)
- [/ide Command](https://learn.benibix.com/term/ai/ide-command)
- [Claude Code JetBrains Plugin](https://learn.benibix.com/term/ai/claude-code-jetbrains-plugin)

## Told apart from

- [Claude Code VS Code Extension vs JetBrains Plugin](https://learn.benibix.com/compare/claude-code-vs-code-extension-vs-claude-code-jetbrains-plugin): People think the VS Code extension and the JetBrains plugin work the same way. They do not. The VS Code extension brings its own copy of Claude Code and shows it in a side panel. The JetBrains plugin brings no copy. It runs the claude command you installed in the editor's terminal and links to it. So the JetBrains plugin will not start until Claude Code is installed on its own.

![Three panels. The VS Code extension holds its own copy of Claude Code in a side panel. The JetBrains plugin runs the claude command in the IDE's terminal and links to it. A dev container box holds Claude Code, the terminal and the build tools, with the project folder mounted inside.](https://learn.benibix.com/diagrams/ai8-cc-editors.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-vs-code-extension
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
