Setup Guide

Setting Up VS Code with Claude Code

Install Visual Studio Code and the Claude Code extension to create your AI-powered learning environment.

Next: How to Use AI to Take Courses →

Prerequisites

Make sure you have the following before you begin.

💻
Operating System
macOS 13+  |  Windows 10+
💼
Node.js
Version 18 or higher required
🌐
Internet
Stable connection required
🕑
Claude Subscription
Claude Pro or Max plan
🔨 Part 1: Install Visual Studio Code

Download and install VS Code for your operating system.

📦

Download Visual Studio Code

1

Go to the VS Code website

Visit code.visualstudio.com and click the download button for your OS.

2

Install VS Code

macOS: Open the downloaded .dmg file and drag Visual Studio Code to your Applications folder.

Windows: Run the downloaded .exe installer and follow the setup wizard. Check "Add to PATH" when prompted.

3

Launch VS Code

Open Visual Studio Code from your Applications (macOS) or Start Menu (Windows) to verify it works.

📦 Part 2: Install Node.js

Claude Code requires Node.js 18 or higher.

🌱 macOS
📱 Windows
🌱

Install Node.js on macOS

1

Download Node.js

Visit nodejs.org and download the LTS version (20 or later recommended).

2

Install and verify

Open the downloaded .pkg file and follow the installer. Then open Terminal and verify:

terminal
node --version
💡 You should see a version number like v20.x.x or higher.
📱

Install Node.js on Windows

1

Download Node.js

Visit nodejs.org and download the LTS version (20 or later recommended).

2

Install and verify

Run the .msi installer and follow the setup wizard. Then open Command Prompt and verify:

cmd
node --version
🤖 Part 3: Install Claude Code

Install Claude Code globally via npm.

🔌

Install Claude Code via npm

1

Open your terminal

macOS: Press Cmd + Space, type Terminal, and press Enter.

Windows: Press Win, type cmd, and click Open.

2

Install Claude Code globally

terminal
npm install -g @anthropic-ai/claude-code
macOS: Do not use sudo. Windows: Do not run Command Prompt as Administrator. Both can cause permission issues.
3

Authenticate

Run claude for the first time. Your browser will open for a one-time sign-in.

terminal
claude

Log in with your Claude.ai account (Pro or Max plan).

4

Verify the installation

terminal
claude doctor
💡 claude doctor checks your installation type, version, and connectivity. All items should show green.
For more detailed installation instructions, see the full Claude Code installation guide.
🔌 Part 4: Install the Claude Code Extension in VS Code

Add the Claude Code extension to Visual Studio Code.

🔌

Install Claude Code Extension in VS Code

1

Open VS Code

Launch Visual Studio Code on your computer.

2

Open the Extensions panel

Click the Extensions icon in the left sidebar, or press:

Cmd + Shift + X (macOS)  /  Ctrl + Shift + X (Windows)

3

Search for "Claude Code"

Type Claude Code in the search bar. Look for the official extension by Anthropic.

4

Install the extension

Click the Install button on the Claude Code extension.

Make sure it is the official extension published by Anthropic.
5

Authenticate with your Claude account

After installation, open the Claude Code panel in VS Code. It will prompt you to sign in with your Claude.ai account. Your browser will open for a one-time authentication.

Log in with your Claude Pro or Max plan account.

6

Verify the setup

After signing in, the Claude Code panel should show a chat interface inside VS Code. You are ready to go!

💡 You can open the Claude Code panel anytime using Cmd + Shift + P (macOS) / Ctrl + Shift + P (Windows) and typing "Claude Code".
💻 What You'll See

After setup, VS Code with Claude Code looks like this: an editor on the left and the AI chat panel on the right.

VS Code with file explorer (left) and Claude Code chat panel (right)

VS Code with file explorer (left) and Claude Code chat panel (right)

Next: How to Use AI to Take Courses →