How to set up VS Code for Claude Code (in one command)
The VS Code setup I run Claude Code, Codex and Gemini in: 9 extensions and quiet settings, installed in one command.
Visual Studio Code (VS Code) is where I run Claude Code every day. But out of the box, it's set up for writing code, not for working with an AI agent.
Long lines run off the screen, autosave is off, and markdown shows up as raw text. So I made a setup that fixes all of it in one command.
Key takeaways
In this guide, I'll show you:
- What VS Code is, and why I run Claude Code in it
- When the Claude desktop app is the better pick
- How to install the setup in one command
- The 9 extensions and the settings, and why each one is there
- How to use it in Cursor, and what to do if you get stuck
The setup is free on GitHub, so you can read every line before you run it. If it helps you, give it a star there so more people find it.
What is VS Code?
Visual Studio Code, or VS Code, is a free code editor from Microsoft, for Mac and Windows.
You won't write code in it. For Claude Code, it's a fast window onto your files, with the agent in a panel beside them.
That's why I use it. I see every file Claude changes, I keep my own notes open next to it, and I can run Claude, Codex and Gemini side by side.
VS Code or the Claude desktop app?
Both run the same Claude, with the same account and the same subscription.
The Claude desktop app's Code tab works on your files directly, with a file editor, a terminal and diff review. If Claude Code is the only agent you use, it's a good place to work, and there's nothing to set up.
VS Code is for the other case: more than one agent on the same folder. Claude does the work, and Codex checks it, so the review comes from something that didn't write the code.
New to Codex? My Codex prompt generator writes a good first prompt for it.
- VS Code with this setup
- Claude, Codex and Gemini in one window
- Claude desktop app
- Claude
- VS Code with this setup
- One command
- Claude desktop app
- Nothing to install
- VS Code with this setup
- Running and checking 2 or 3 agents
- Claude desktop app
- Working with Claude alone
How to set up VS Code for Claude Code
This is the command. It downloads the setup, installs the 9 extensions and applies the settings:
npx degit thenavidm/vscode-setup-guide vscode-setup && bash vscode-setup/scripts/install.shIt backs up your settings first and prints where the copy went, so nothing you had is lost. The script is about 60 lines, if you'd like to read it first.
Already running Claude Code? Paste the command in, let Claude run it, then ask it to restart VS Code.
You'll know it worked when the editor turns dark and quiet, the file icons change, and Claude appears in a panel at the bottom.
Rather keep your current setup as it is? Import the profile file instead: the gear at the bottom left, then Profiles, then Import Profile. It lands as a separate profile you can switch in and out of.
Pro tip Make a fresh folder for your first week. Claude reads everything in the folder you open, so don't point it at anything that matters yet.
The 9 extensions
Each one installs straight from the VS Code marketplace.
- Made by
- Anthropic
- What it does
- Claude in a panel, reading and editing the files in your folder
- Made by
- OpenAI
- What it does
- OpenAI's agent in the same window, good for reviewing what Claude wrote; comes with a paid ChatGPT plan
- Made by
- What it does
- Google's agent, for a third opinion, with a free tier
- Made by
- Miguel Solorio
- What it does
- A minimal dark and light theme; the setup opens in Min Dark
- Made by
- Miguel Solorio
- What it does
- Quiet file icons that match the theme
- Made by
- SlashMD
- What it does
- A Notion-style editor for markdown files; the newest of the 9, so expect rough edges
- Made by
- Database Client
- What it does
- Opens Word, Excel, PowerPoint and PDF files inside the editor
- Made by
- Microsoft
- What it does
- Shows a web page as you change it
- Made by
- Pablo De Lucca
- What it does
- Your Claude Code agents as pixel-art characters in an office while they work
Pixel Agents is there for fun. Remove it if you'd rather not have it.
Want Claude to read your PDFs and Word files? Turn them into markdown first with my PDF to Markdown and Word to Markdown converters.
The settings that change
The extensions are half of it. The other half turns off what a code editor does that gets in the way when you're writing.
- Word wrap on – long paragraphs wrap to the window instead of running off the right edge.
- Autosave after 1 second – you never lose a change.
- No autocomplete in markdown – no popup finishing your words mid-sentence, and no spellcheck squiggles under names.
- Real tabs – each file you open stays open, instead of the next one replacing it.
- No clutter – no minimap, breadcrumbs, sticky headers or lightbulb hints.
- SlashMD for .md files – notes open as a Notion-style page, not raw text.
Every setting explained The full settings file is commented line by line, so you can see what each setting does before you keep it or change it.
Prefer light mode? Press Cmd + Shift + P (Ctrl + Shift + P on Windows), type theme, and pick Min Light.
Using Cursor instead
Cursor is VS Code underneath, so the setup works there too. Install the 9 extensions from Cursor's sidebar and paste the settings file into its settings.
If you get stuck
For your first real task, my Claude Code prompt generator turns a rough idea into a prompt Claude Code can run.
Stuck on the setup itself? Copy the guide into Claude and tell it which step you're on:
Ask Claude for helpI'm following this VS Code setup guide and I'm stuck on [step].
Here's what I'm seeing: [describe it or paste a screenshot].
Walk me through it and explain what each part does.
What you need
- A computer – a Mac or a Windows computer.
- VS Code – free from Microsoft.
- A Claude plan – Pro or Max, for Claude Code. No API key needed.
- Optional – a paid ChatGPT plan for Codex, and a Google account for Gemini Code Assist.
FAQs about setting up VS Code for Claude Code
Here are answers to the questions people ask most about VS Code and Claude Code.
Visual Studio Code (VS Code) is a free code editor from Microsoft, for Mac and Windows.
With the Claude Code extension, Claude works in a panel beside your files.
Claude Code is Anthropic's AI agent that reads, writes and runs code in the folder you open.
It runs in the terminal, in VS Code, and in the Claude desktop app.
Install the Claude Code extension from Anthropic, then sign in with your Claude account.
This setup installs it for you, with 8 more extensions and the settings.
No, a Claude Pro or Max plan works.
You sign in with your Claude account in the Claude Code panel.
Yes, Visual Studio Code (VS Code) is free from Microsoft, for Mac and Windows.
The 9 extensions in this setup are free to install too.
Use the desktop app if Claude is the only agent you use.
Use VS Code to run Claude, Codex and Gemini on the same folder.
It backs up your settings first and prints where the copy is.
To keep your setup as it is, import the profile file as a separate profile instead.
Yes, Cursor is VS Code underneath.
Install the extensions from its sidebar and paste in the settings file.
Final thoughts on setting up VS Code for Claude Code
The setup takes about 5 minutes. After that, VS Code stops getting in your way, and Claude works where you can see it.
Keep reading:
- How I use AI – the AI OS I run my business on
- Free tools – over 400 tools I built with Claude Code
- Claude Code prompt generator – turn a rough idea into a prompt Claude Code can run
- The setup on GitHub – every file in this guide
Run the command, open a fresh folder, and ask Claude to tell you what's in it.
Navid.me is reader-supported. When you buy through links on this site, I may earn an affiliate commission. Learn more.
Similar articles
What is a token in AI? The 4 kinds and what each one costs
All 6 Claude Code permission modes, and what each one allows
All 118 Claude Code commands, and when to use each
What is a vibe creator? (And how to become one)
How to install Claude Code: 8 ways, and which one to pick
What is vibe coding? (And how it works)
How to build an AI voice agent (step by step)
How to build an AI operating system (AI OS)
17 hidden Claude Code commands most people never find
What is Claude Code? What it does, where it runs and what it costs

How to make money with AI as a creator: 15 real ways (2026)

10 biggest AI lessons to 10x your creator business (2026)
Related free tools
Free AI newsletterThe most actionable AI newsletter for founders
Every week, get proven AI strategies, curated tools, and step-by-step systems to grow your audience, create better content, and build a profitable creator business.
No fluff, no filler, no BS. Just five minutes each week that might level up your online business and life.
P.S. Sign up now to get free access to my ultimate AI tools guide for creators.
