Blog · AI Agents ·
How to use Claude Code in VS Code on Windows: setup, the trust prompts, and a real job with no coding
By Khadim Hussain · 9 min read
In short
To use Claude Code in VS Code on Windows, install VS Code, press Ctrl+Shift+X, search for Claude Code and install "Claude Code for VS Code" by Anthropic. Open a folder and trust it, because the extension doesn't run in Restricted Mode, then click ✻ Claude Code in the status bar. The extension is free, but Claude Code needs a paid plan, from $20 a month for Pro. In my test it cleaned a messy 40-row contact list in about a minute and passed 6 of 6 checks.
Contents
- Is Claude Code in VS Code free?
- How do I install VS Code on Windows?
- How do I install the Claude Code extension in VS Code?
- How do I open Claude Code in VS Code?
- What does Claude Code ask the first time?
- How to use Claude Code in VS Code with no coding: cleaning a contact list
- Did Claude Code clean the list correctly?
- How does plan mode work in the VS Code extension?
- Can I use Claude Code in the VS Code terminal instead?
- What else does the panel do?
- Frequently asked questions
Claude Code runs inside VS Code through a free extension from Anthropic, and you can use it without writing any code. I filmed the setup on a fresh Windows 11 virtual machine for my YouTube channel, Khadim Labs, with VS Code 1.148.0 and extension 2.1.332. It took one installer, one extension and three "do you trust this?" questions, and on its first real job, a messy 40-row contact list, it passed all 6 of my checks. Steps and prices are as of 29 November 2026.
Is Claude Code in VS Code free?
The extension is: the Visual Studio Marketplace lists "Claude Code for VS Code" by Anthropic as Free. Claude Code itself needs a paid plan: on claude.com/pricing the Free plan says "No" for Claude Code, Pro costs $20 a month ($17 a month billed yearly), Max $100 and Ultra $200. Anthropic's VS Code guide adds that Team, Enterprise and Claude Console accounts work too, and "no API key is required." My Claude Code on Windows guide explains the usage limits.
You also need VS Code 1.94.0 or later. You don't need the terminal version of Claude Code, because the extension brings its own copy.
How do I install VS Code on Windows?
- Open code.visualstudio.com and click Download for Windows. That gave me the user installer, 275 MB, and it installed without asking for an admin password.
- Run it, accept the licence, and click through to Install.
- When VS Code opens, the first screen asks you to sign in to GitHub Copilot. Claude Code doesn't need Copilot, so click Continue without Signing In. A theme page follows; click Get Started.
How do I install the Claude Code extension in VS Code?
- Press
Ctrl+Shift+Xto open Extensions, and search forClaude Code. - Pick "Claude Code for VS Code" by Anthropic, with the verified anthropic.com mark. Mine showed 31.2M installs and 3.5 stars. Other extensions in the results have "Claude Code" in their names too, and one describes itself as an unofficial integration, so check the publisher. The official extension's ID is
anthropic.claude-code. - Click its name to open the details page, and click Install there. At my zoom level the results list showed no Install button.
- Because it was my first extension from Anthropic, VS Code asked 'Do you trust the publisher "Anthropic"?' Click Trust Publisher & Install.
VS Code also opens a chat panel on the right side. That's its own GitHub Copilot chat ("Sign in to use GitHub Copilot models"), not Claude. Ctrl+Alt+B hides it.
How do I open Claude Code in VS Code?
Claude Code works on the files in a folder. Mine was contacts-cleanup in Documents, holding one file, contacts.csv.
- Press
Ctrl+K, thenCtrl+O, and choose the folder. - VS Code opens it in Restricted Mode, with a banner across the top: "Restricted Mode is intended for safe code browsing. Trust this folder to enable all features." The Claude Code extension doesn't run in Restricted Mode, so click Manage on that banner, then Trust.
- With the folder trusted, "✻ Claude Code" appears in the status bar at the bottom right. Click it, and the Claude Code panel opens beside your file.

Anthropic's guide lists two more ways in: the Spark icon in the editor toolbar, which only shows while a file is open, and the Spark icon in the Activity Bar. If none of them appear, look at the bottom left of the window. Mine said "Restricted Mode" there until I trusted the folder.
The panel needs you signed in to a paid Claude account. I signed in before recording.
What does Claude Code ask the first time?
The panel opens with "What to do first? Ask about this codebase or we can start writing code." and a note: "Prefer the Terminal experience? Switch back in Settings." Then Claude Code asks its own trust question, separate from VS Code's:
Trust this folder in Claude Code? Claude Code reads the folder's .claude/settings.json and .mcp.json before each session. They can run programs on your computer: hooks, environment variables, helper commands, and MCP servers. Trust the folder only if you created it or know who did.
The choices are Don't trust, Trust folder and Cancel. For a folder you made yourself, click Trust folder. If you pick Don't trust, the box explains, Claude Code uses your own settings and leaves the folder's settings, MCP servers, CLAUDE.md, commands and skills unused.

A card in the panel also said "Auto mode is now Claude Code's default permission mode". The mode menu at the bottom of the prompt box offers Manual, Edit automatically, Plan and Auto. Auto "will approve actions that pass a safety check and pause for anything risky", and Manual "will ask for approval before making each edit". For a first job, Manual is the safer pick, because you approve every change.
The file open in the editor is attached to your message automatically, as a chip under the prompt box. Another chip shows the model and its effort level. Mine read "Sonnet 5.5 Medium".
How to use Claude Code in VS Code with no coding: cleaning a contact list
My test file was a contact list I made messy on purpose: 40 rows for 34 invented people. It had 6 duplicate rows, names in mixed case, phone numbers written 6 different ways, emails in capitals or with spaces, and 3 people with no phone at all. In Manual mode, I typed one sentence:
Clean this list: remove duplicate people, fix the capital letters in names, write every phone like +1 (503) 555-0100 and make emails lowercase. Don't change anything else.
Claude Code wrote the cleaned list and asked before saving it: "Allow write to …contacts.csv?" The answers were Yes; Yes, allow all edits this session; No; and Tell Claude what to do instead.

I clicked Yes. Then it wrote "I made a typo in the Liam O'Connor row, so I'm fixing it now" and asked again, this time "Make this edit to…". About a minute after I pressed Enter, its summary was in the panel, and about 20 of those seconds were spent waiting for my two clicks.
Did Claude Code clean the list correctly?
Yes. I checked the file with a script that compares it with an answer key on 6 points. The original messy file passes 1 of them. Claude Code's version passed all 6:
| Check | Result |
|---|---|
| One row per person: 34 rows from 40 | Pass |
| Nobody lost | Pass |
| Every email lowercase | Pass |
| Names exactly right, McKenzie and O'Connor included | Pass |
| Every phone as +1 (503) 555-0100, none invented for the 3 blanks | Pass |
| Company and city untouched | Pass |
The names check is the one a quick fix gets wrong, since putting every name in Title Case turns McKenzie into "Mckenzie".
Its summary named the three people with no phone, Liam O'Connor, Samuel Haddad and Layla Hassan, and said their phones were still blank. It also removed stray spaces around some emails, "since they would have made the addresses invalid". I hadn't asked for it, but the fix was right and the summary reported it.

How does plan mode work in the VS Code extension?
Plan mode makes Claude Code show you a plan before it changes anything. I picked Plan in the mode menu and asked: "Make a short summary.md: how many contacts each company has, and a list of everyone with no phone number."
It opened the plan as a document beside the panel, marked "Ready for review" with the hint "Select text to add comments on the plan", so you can comment on any line before Claude starts. In the panel it asked "Accept this plan?", with Yes, and use auto mode; Yes, and manually approve edits; and No, keep planning.

I chose manual approval. It asked before writing summary.md, and before it answered, it asked permission to run a PowerShell command that counted the rows again. The answer was right: 34 contacts across 13 companies, eight with 3 contacts and five with 2, and the same 3 people with no phone.
Can I use Claude Code in the VS Code terminal instead?
Yes, if Claude Code's command-line version is installed as well. Press Ctrl+` (the backtick key, left of 1) to open VS Code's terminal, and type claude. Anthropic's guide says the extension doesn't add claude to your PATH, so with only the extension installed, the command won't be found. It worked in my VM because I had installed the CLI separately, which my Windows install guide walks through.
The terminal version asks its own folder trust question, and its highlighted answer is "No, exit". Press the down arrow to "Yes, I trust this folder", then Enter.
The panel and the terminal share their history. claude --resume listed the panel's conversation, "Contacts.csv cleanup", and opened it. I asked a follow-up there, and it answered: "contacts.csv now has 34 people, and I removed 6 rows … duplicates of Marcus Reed, Sofia Marquez, Isabella Costa, Noah Fischer, Ava Lindqvist and Ivy Chen".
Anthropic's guide says the panel has a subset of the commands, no ! shortcut and no tab completion. If you're new, I'd start with the panel, where plans and permission questions are buttons, and since a chat continues in either, you can switch at any time.
What else does the panel do?
A few features from Anthropic's guide that this job didn't need: type @ and a file name to add another file to your message, or right-click a file in the Explorer and choose Claude Code: Add to Chat. Alt+K adds a reference to the lines you've selected. If an edit goes wrong, hover over an earlier message and pick Rewind code to here.
A procedure you repeat can become a Claude Code skill. If you want Claude Code set up for your team's real work, that's part of my AI agent consulting.
Next
Related
AI Agents · · 14 min read
Claude Code on Windows: install it, fix 'claude' is not recognized, and use it with no coding
Install Claude Code on Windows with one PowerShell command, fix 'claude' is not recognized with two PATH lines, sign in, and run two tasks with no coding.
AI Agents · · 9 min read
Claude Code skills: how they work, and when Claude uses one by itself
How Claude Code skills work, where SKILL.md goes and why one won't trigger, with a 108-run test of skill names, descriptions and manual-only skills.
Claude Code consultant: AI agents, MCP servers and RAG
Claude Code and AI agent consultant: I scope, build and test agents that work with your tools and data, using MCP servers, RAG, Claude Code skills and n8n.
Frequently asked questions
Is the Claude Code extension for VS Code free?
The extension is free on the Visual Studio Marketplace, but Claude Code needs a paid Claude plan. The free plan doesn't include it. Pro costs $20 a month, or $17 a month billed yearly; Max is $100 and Ultra $200. Team, Enterprise and Claude Console accounts work too.
Do I need to install Claude Code separately to use it in VS Code?
No. The extension comes with its own copy of Claude Code. You only need the separate install if you want to type claude in a terminal, because the extension doesn't add claude to your PATH.
Why is Claude Code not showing in VS Code?
Usually because the folder is in Restricted Mode, where the extension doesn't run. Click Manage on the Restricted Mode banner, then Trust, and the ✻ Claude Code item appears in the status bar. The Spark icon in the editor toolbar only shows while a file is open, and the extension needs VS Code 1.94.0 or later.
Is the chat on the right side of VS Code Claude Code?
No. That's VS Code's own GitHub Copilot chat. Ctrl+Alt+B hides it. Claude Code opens from the ✻ Claude Code item in the status bar or the Spark icon, in a panel of its own.
Does Claude Code in VS Code need an API key?
No. Anthropic's VS Code guide says any paid Claude subscription (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account works, and no API key is required.
Can I continue a VS Code Claude Code chat in the terminal?
Yes, if the Claude Code CLI is installed. The panel and the terminal share their history: claude --resume lists the panel's conversations, and picking one continues it in the terminal.
What is the difference between the Claude Code extension and the CLI?
It's the same agent in two windows. The panel has a subset of the CLI's commands, no ! shortcut and no tab completion, but plans and permission questions are things you click. Both keep one shared history.
Want a second pair of eyes on this?
Book a 15-minute intro call. Bring the problem, and you leave with a concrete next step.