# How to use Claude Code in VS Code

Install the Claude Code extension on VS Code 1.94.0 or later, then click Spark to start. Then see permission modes, diffs and 4 fixes.

Tool: Claude. By ColdIQ team. Updated 2026-12-02. Source: https://coldiq.com/university/claude/use-claude-code-in-vs-code

## In short

- The Claude Code extension (an add-on for VS Code) needs VS Code 1.94.0 or later. You need a paid Claude plan or a Claude Console account. No API key (secret access code) is needed.
- You open it from the Spark icon or the Claude Code item in the status bar. The Command Palette (VS Code’s command search box) works too.
- Auto is the starting mode in recent versions. Manual mode shows each change as a diff (old and new versions side by side) that you accept or reject.
- Type @ and a file name to point Claude at a file, or select text and it is shared automatically.
- The extension and the terminal version (run by typing commands) share conversation history. You can switch from one to the other.

Video: [Installing Claude Code](https://www.youtube.com/watch?v=0kILa02vKuI)

## Steps

1. In VS Code, open Extensions and search for Claude Code.
2. Install it and sign in.
3. Open the Claude Code panel and describe the change you want.

## Why use Claude Code in VS Code instead of the terminal?

VS Code is a free code editor from Microsoft. It shows your files on the left and the open file in the middle. You always see what Claude is working on.

The extension adds Claude Code in a panel next to your files. You get side-by-side diffs with the changes highlighted. You also get @-mentions (type @ to name a file) and a readable plan you can comment on.

For a beginner, this is often easier than the terminal. You see each change before it lands.


## How do you open Claude Code in VS Code?

After you install the extension, you have several ways in. Pick the one you find first.

- The Spark icon at the top right of the editor. It only shows when a file is open.
- The Spark icon in the Activity Bar on the left, which opens your list of sessions.
- Claude Code in the status bar at the bottom, which works with no file open.
- The Command Palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows): type Claude Code and choose Open in New Tab.
- The shortcut Cmd+Esc on Mac or Ctrl+Esc on Windows, to jump between your file and Claude.


## Which permission mode should you pick?

The mode shows at the bottom of the prompt box. Click it to switch. It decides what Claude may do without asking you.

- Auto: a safety check reviews most actions instead of asking you. It is the starting mode in recent versions.
- Manual: Claude asks before file edits and most commands. Best while you learn.
- Plan: Claude describes what it will do and waits. The plan opens as a document where you can add comments.
- Edit automatically: Claude edits files without asking. Use it once you trust the task.

Tip: Use Plan mode for anything that touches more than one file. Comment on the plan, then approve it.


## How do you point Claude at the right file?

Type @ followed by part of a file name, and pick the file from the list. @pricing finds pricing.html or pricing-notes.md. Add a slash for a folder, such as @campaigns/.

If you select lines in a file, Claude sees them automatically. Press Option+K on Mac or Alt+K on Windows to insert an exact reference such as @emails.md#5-10.

You can also right-click a file or folder in the Explorer and choose Claude Code: Add to Chat.

> Read @campaign-q1/emails.md and rewrite the three subject lines so each one is under 7 words. Keep the email bodies as they are. Show me the diff before you save.


## How do you review and accept changes?

In Manual mode, Claude shows each change as a side-by-side diff. You accept it, reject it, or tell Claude what to do instead.

For a file with several changes, use Accept this change and Reject this change to go one by one. You can also edit the new version yourself in the diff view: Claude is told what you changed.

Very large diffs, with more than 100 changes, open without the per-change buttons. Review them as a whole file.


## A first project for a marketer in VS Code

A good first task is a simple page you can look at. For example, a registration page for a webinar.

1. Create an empty folder called webinar-page and open it in VS Code with File > Open Folder.
2. Open Claude Code and switch to Plan mode.
3. Paste the request below and read the plan.
4. Approve it, then open index.html in your browser to see the page.
5. Ask for changes in plain words until it looks right.

> Build a one-page registration site for our webinar "Outbound that books meetings in 2027", on January 14 at 5pm CET. Put a headline, three bullet points on what people will learn, the speaker’s name, and a form with first name, work email and company. One file, index.html, clean and simple.


## Common problems and fixes

A few issues come up often in the first days.

- The extension does not show: restart VS Code, or run Developer: Reload Window from the Command Palette.
- claude does not work in the VS Code terminal: the extension does not install the terminal version. Install it separately with Anthropic’s install command.
- Cmd+Esc does nothing on a recent Mac: the system Game Overlay can take that shortcut. Clear it in System Settings or pick another shortcut.
- A slash command is missing: the extension supports a subset of the terminal commands. Type / to see the list.


## Sources

- [Use Claude Code in VS Code](https://code.claude.com/docs/en/vs-code)
- [Claude Code permission modes](https://code.claude.com/docs/en/permission-modes)
- [Claude Code overview](https://code.claude.com/docs/en/overview)

## Questions

**Does Claude Code work in Cursor?** Yes. Install the same Claude Code extension from Cursor’s Extensions view. It also works in other VS Code based editors through Open VSX (a public store of extensions).

**Do I need an API key for the VS Code extension?** No. You sign in with your Claude account the first time you open the panel. Any paid plan or a Claude Console account works.

**Can I use the terminal version of Claude Code inside VS Code?** Yes. Open the built-in terminal with Ctrl+` (Cmd+` on Mac) and type claude. From a terminal outside VS Code, run /ide to connect.

**Can I continue an extension conversation in the terminal?** Yes. Both share the same history: run claude --resume in the terminal and pick the conversation.


## Related

- [What is Claude Code?](https://coldiq.com/university/claude/what-is-claude-code)
- [What is Cursor?](https://coldiq.com/university/cursor/what-is-cursor)

## Try ColdIQ free

ColdIQ gives new accounts up to 1,450 free credits as they get started, no credit card required.
One subscription covers 40+ B2B data providers for finding, enriching and verifying
contacts and companies, through the web app, the API or the MCP server for AI agents.

1. Create an account: https://coldiq.com/marketplace/sign-up?utm_source=ai-assistant&utm_medium=markdown&utm_content=university
2. Run a first search on your own market with the free credits.
3. Connect the MCP server to Claude, ChatGPT or Cursor: https://coldiq.com/mcp
