Claude Code in VS Code: How to Install and Use the Extension
Skillpedia team · updated 2026-12-01 · 10 min read
Short answer: To use Claude Code in VS Code, open the Extensions tab, search for "Claude Code," install the official extension from Anthropic, and sign in with your Claude account. Then open a project folder and chat with Claude in a panel next to your code. The skills and MCP servers you already installed keep working.
Many people give up on Claude Code when they see it runs in the terminal, that black screen full of text. The VS Code extension solves this. You get a chat panel similar to claude.ai, you see your files on the side, and you approve each change with one click.
You don't need to be a programmer to follow this guide. It's for anyone who wants to build a simple website, organize spreadsheets and documents, or just understand what a project does.
Table of contents
- Why use Claude Code inside VS Code
- How to install the extension step by step
- First use: opening a project and asking for a task
- Do skills and MCP work in the extension?
- Shortcuts and useful commands
- Common problems and fixes
- Skills that help with this
- Frequently asked questions
Why use Claude Code inside VS Code
Claude Code is Anthropic's programming agent. It reads the files in your project, creates and edits files, and runs commands for you. If you don't know the tool yet, start with our complete Claude Code guide.
In the terminal, all of this shows up as plain text. In VS Code, the same thing becomes a visual interface. The advantages:
- You see what changes. When Claude edits a file, VS Code shows the before and after side by side, with the new lines highlighted.
- Approving takes one click. Instead of typing "yes" in the terminal, you click to accept or reject.
- Files are within reach. The folder list sits on the side. You can open a file and ask about it right away.
- Less intimidating. If you've never opened a terminal, an editor with buttons and menus is much friendlier.
VS Code is free and runs on Windows, Mac, and Linux. Editors based on it, such as Cursor, also support the extension.
An important detail: the extension is not a different Claude. It's the same Claude Code, with the same models and the same limits as your plan. Only the way you use it changes.
How to install the extension step by step
What you need first
- VS Code installed. If you don't have it, download it from the official site.
- An account with Claude. Claude Code generally requires a paid plan (Pro or Max) or API credits. Plans and prices change, so check the current amounts on the official site. We explain the options in Is Claude Code free? Prices and plans.
- An internet connection, since Claude runs on Anthropic's servers.
Installing
- Open VS Code.
- Click the Extensions icon in the left sidebar, the one with four small squares. If you prefer the keyboard, use
Ctrl+Shift+Xon Windows and Linux orCmd+Shift+Xon Mac. - In the search box, type Claude Code.
- Check that the publisher is Anthropic. There are third-party extensions with similar names.
- Click Install.
- When it finishes, a Claude icon appears in VS Code. Click it to open the panel.
- The first time, it asks you to sign in. Your browser opens, you sign in with your Claude account, authorize it, and return to the editor.
In most cases, that's all there is to it. If the extension says a component is missing, follow our tutorial How to download and install Claude Code. It covers Windows, Mac, and Linux. The official documentation is at code.claude.com.
What if I already use Claude Code in the terminal?
Even better. You don't lose anything. You can keep typing claude in VS Code's built-in terminal whenever you want, and the settings you already made will carry over.
First use: opening a project and asking for a task
Claude Code always works inside a folder. It can see what's in that folder and nothing beyond it, unless you ask. So the first step is choosing the right folder.
1. Open a folder
Go to File > Open Folder and choose a folder. To test, create an empty one called teste-claude on your desktop.
2. Open the Claude panel
Click the Claude icon. The chat panel opens next to the editor.
3. Make a simple request
Write in plain language, as if you were talking to a person. A few examples:
- "Create a simple HTML page with the menu for my cake shop: carrot cake R$ 35, chocolate cake R$ 40, and brigadeiro R$ 2.50 each."
- "I have a file called
clientes.csvin this folder. Tell me how many customers are from São Paulo." - "Explain in simple terms what this project does."
4. Approve the changes
Before creating or changing a file, Claude shows what it plans to do. You see the difference on screen and choose to accept or reject it. If something isn't right, just ask next: "make the title bigger and change the color to pink."
5. Mention files with @
Type @ in the message field and pick a file from the list. This way Claude knows exactly which file you mean, without searching for it.
Tip: create a CLAUDE.md
The CLAUDE.md file holds fixed instructions for your project, such as "always reply in Portuguese" or "the website's audience is stay-at-home moms." The /init command helps you create this file. We explain everything in CLAUDE.md: the file that makes Claude Code smarter.
5 new skills a week. 1 minute to read.
The most viewed skills of the week, explained simply. Free.
Do skills and MCP work in the extension?
Yes. It's one of the most useful parts of using the extension.
Skills are packages of instructions that teach Claude to do a specific task the right way, such as reviewing code, creating a presentation, or following your brand guidelines. They live in folders on your computer, and the extension uses the same skills as Claude Code in the terminal. If you installed a skill through the terminal, it already shows up in VS Code.
To install new ones, see How to install GitHub skills in Claude Code, Cursor, and Codex. On Skillpedia, you can find more than 15,000 skills organized by topic.
MCP is how you connect Claude to other programs and services, such as Google Drive, Figma, or a database. MCP servers configured in Claude Code also work in the extension. The step-by-step guide is at How to connect MCP to Claude.
To check what's active, type /mcp in the panel. If a server doesn't appear, close and reopen VS Code after installing it. This usually fixes it.
One thing to watch: Claude Code only sees skills and MCPs stored in the folders it reads. Skills installed for a single project live inside that project's .claude folder. That's why they don't appear when you open a different folder.
Shortcuts and useful commands
In the message field, type / to see the list of available commands. The most useful day to day:
| Command | What it does |
|---|---|
/clear |
Clears the conversation and starts from scratch |
/compact |
Summarizes the conversation to save space and tokens |
/model |
Switches the model (for example, Sonnet or Opus) |
/init |
Helps create the project's CLAUDE.md file |
/mcp |
Shows the connected MCP servers |
/help |
Lists the commands and gives general help |
@file |
Points to a specific file in the conversation |
Keyboard shortcuts can change between versions. To see which ones work on your computer, open the command palette with Ctrl+Shift+P (or Cmd+Shift+P on Mac) and type Claude. All of the extension's actions appear, and some show their shortcut next to them.
Habits that save your limit
- Use
/clearwhen you change topics. Long conversations use more. - Mention the file with
@instead of asking Claude to search the whole project. - For simple tasks, a lighter model is often enough. See which Claude model to use.
For more tricks, see Saving tokens in Claude Code: 12 tips.
Common problems and fixes
The extension doesn't show up in search. Update VS Code: go to Help > Check for Updates on Windows and Linux, or Code > Check for Updates on Mac. Old versions sometimes don't show new extensions. In Cursor and other similar editors, the search may use a different store. Search for the name again and check the publisher.
Sign-in doesn't finish. Check whether the browser opened and whether you signed in to the right account. If it gets stuck, close VS Code, reopen it, and try again. Also confirm that your plan includes Claude Code.
You get a usage limit warning. Claude Code uses the same limits as your Claude plan, so conversations on claude.ai and in VS Code count together. Wait for the limit to reset or shorten your conversations. Details in Claude limits by plan.
Claude can't find my file. It only sees the open folder. Check that you opened the right folder under File > Open Folder, and not a loose file.
A skill doesn't work. Check that the skill's folder contains the SKILL.md file and that it's in the right place: in the project folder or in your personal skills folder. Then restart VS Code.
An MCP won't connect. Run /mcp to see its status. Many servers need a key or a login to the service. Redo the setup following the server's own guide.
On Windows, something doesn't run. Some commands Claude tries to run were designed for Mac and Linux. If you get an error, ask: "I'm on Windows, adapt the command." It usually works.
Skills that help with this
If it's your first time with skills, start with these. All of them work directly in the VS Code extension.
- karpathy-guidelines: makes Claude write code that is simpler, clearer, and easier to check. Very helpful for anyone who can't review code on their own.
- code-review: before you call the task finished, it compares the changes against your project's standards and against what you asked for at the start.
- finishing-a-development-branch: when the work is ready, it runs the tests and explains the options for saving and publishing what was done.
- graphify: turns a folder full of files into a navigable map. It's great for understanding a project you inherited or forgot how works.
- browse: lets Claude open a real browser, test the pages on your site, and take screenshots to show the result.
To learn more about Claude Code itself, the Claude Code Ultimate Guide MCP server gives the agent a reference guide. That way you can get your questions answered without leaving the editor.
Frequently asked questions
Is the Claude Code extension for VS Code free? The extension itself is free to install, but using Claude Code generally requires a paid Claude plan or API credits. Check the current price on the official site.
Do I need to know how to program to use it? No. You talk in plain language. Knowing the basics helps you judge the results, and skills like karpathy-guidelines make the code easier to understand.
Does it work in Cursor? Yes. Cursor is based on VS Code and supports the extension. Just make sure it's the official one from Anthropic.
What's the difference between using the extension and the terminal? Claude is the same. The extension shows changes visually with buttons, while the terminal is all text. Skills, MCP, and settings work in both.
Can Claude delete my files? It asks for your approval before changing files, unless you change that setting. To feel more at ease, work on a copy of the folder while you learn.
Related reading
- How to download and install Claude Code: the complete step-by-step guide for Windows, Mac, and Linux.
- Claude Code: what it is, how to download it, and how much it costs: the general guide to understanding the tool.
- How to install GitHub skills: add new abilities to your Claude in a few minutes.
- How to connect MCP to Claude: connect Claude to Drive, Figma, and other services.
- Saving tokens in Claude Code: 12 tips to make your limit go further.
Free MCP
Give your AI 15,000+ skills, for free
Plug the Skillpedia MCP into Claude, Cursor, Codex or any AI. Before each task, it finds the right skill on its own.
- 01Get your free key
- 02Paste one line into your AI
- 03Ask for any task
Full guide on this topic: Claude Code: What It Is, What It Does, and How to Start (2026 Guide)
5 new skills a week. 1 minute to read.
The most viewed skills of the week, explained simply. Free.