← All writing Claude Code

Installing Claude Code in VS Code

1 min read

Step 1 — Install VS Code

Download and install Visual Studio Code from the website https://code.visualstudio.com/.

Step 2 — Find the Claude Code extension

Click on the extension icon and search for Claude Code. You will get the official Anthropic icon.

Click the extension icon and search for Claude Code — the official Anthropic result.
Click the extension icon and search for Claude Code — the official Anthropic result.

Step 3 — Trust the publisher

A pop-up will appear for confirmation of trust. Select Trust Publisher and Install.

Select 'Trust Publisher & Install' on the confirmation pop-up.
Select 'Trust Publisher & Install' on the confirmation pop-up.

Step 4 — Open Claude Code and start a session

Verify the Claude Code extension icon and click on ‘+ New Session’ to start the chat.

Verify the Claude Code icon and click '+ New session'.
Verify the Claude Code icon and click '+ New session'.

Step 5 — Sign in

The next part is to authenticate your Claude subscription account. Start a new session and click on the ‘Claude.ai’ subscription button. This will take you to a browser where you will log in with your Claude account and authorize the Claude Code extension in VS Code.

Click the 'Claude.ai Subscription' button.
Click the 'Claude.ai Subscription' button.
In the browser, authorize the Claude Code extension.
In the browser, authorize the Claude Code extension.

Step 6 — Check which model you're on

Create a new session and ask for the model in the chat. You will get the details about which model is currently active in your session.

Ask which model is running to confirm the active model for your session.
Ask which model is running to confirm the active model for your session.

Step 7 — Switch models and settings

Click on the icon to switch the model and other settings in Claude Code.

Open the menu to switch the model and adjust settings.
Open the menu to switch the model and adjust settings.
Pick a model from the list.
Pick a model from the list.
© 2026 Tushar Singhal · CC BY-SA 4.0