How to use Claude Code
in VS Code
Add the official extension, use a folder you trust and review a small local build. Start with supplied facts and check each result.
Start with a folder you trust
New to the tool? The Code beginner guide explains what it does and the other ways to start. Here you will use the official extension inside VS Code and a small local practice folder.
Check the current extension prerequisites for your account and version. You can use an eligible Claude login; other authentication and provider setups have different billing and access requirements.
1. Install VS Code and open a practice folder
Get VS Code from Microsoft's official site. Create a new empty folder called first-build and open it in VS Code. Keep private records out of this exercise.
If VS Code asks whether you trust the folder, decide based on where its files came from. Do not approve an unfamiliar downloaded project just to dismiss the prompt. The extension does not work in Restricted Mode, so use the empty folder you created for this first task.
2. Add the official Claude Code extension
Open Extensions from the left sidebar. The shortcuts are:
Cmd + Shift + XCtrl + Shift + XSearch for Claude Code and check that the publisher is Anthropic before installing. The official extension includes its CLI components; a separate terminal installation is not needed for this route.
3. Sign in and check the permission mode
Open the Claude Code panel from the Claude icon or VS Code's command palette. Sign in using the supported option for your account. Review the account and any consent screen before continuing.
Use the mode selector to choose Manual for this practice task. Manual asks before edits and commands that require permission, subject to existing approvals and rules. It does not mean every read or already-allowed action asks again. Auto uses an automated review for routine actions and may still ask you; available modes can depend on your setup.
Read permission requests and check the resulting diff. Keep publishing, external account changes and live form submissions outside this first exercise. Current mode guidance explains the differences.
4. Build and check a local page
This prompt uses made-up event facts. It is a practice input, not a recorded model result:
In this empty practice folder, build a local index.html for a fictional community picnic. Use only these facts: Saturday at 11 am; bring your own lunch; location not yet confirmed. Mark the location as unknown. Do not invent organisers, testimonials or contact details. Do not publish, install packages or submit a form. Explain how I can open the page locally.Open the local page it creates. Check that it says Saturday, 11 am and bring your own lunch, and that it has not invented a location. Inspect what files changed. Ask for a correction if a supplied fact is missing or wrong.
What if the panel or sign-in does not appear?
Check the official extension's troubleshooting section, your installed VS Code version and workspace trust. Do not change account security settings or grant access to an unfamiliar folder just to make the tutorial continue.
Other small jobs to try
Replace the brackets with your facts and keep the result local until you have reviewed it.
Build a local practice landing page for [my business]. Use only the facts I provide below. Leave placeholders for missing facts, customer quotes and contact details. Do not invent testimonials or connect an email signup service. Do not publish it. Facts: [paste approved facts].Build a local quote calculator using [my hourly rate] and [my stated pricing rules]. Show the calculation and flag missing inputs. Use sample customer details only. Do not send quotes or publish anything.Create a local budget dashboard using this synthetic sample: income 100, rent 40, groceries 20. Keep the numbers as supplied and label them as practice data. Do not connect accounts or publish anything.Build a local portfolio page using only [the project details I supply]. Leave placeholders for missing results, images and client quotes. Do not invent credentials or connect a live contact form. Do not publish it.These are suggested exercises, not customer stories or measured outcomes. A working-looking page still needs checks before anyone relies on it.
Sources reviewed 1 November 2026: official VS Code setup, permission modes, existing rules and access. Check current access and instructions if your account looks different.