Home

Use Claude Code from VS Code on Mac

You’ve installed Claude Code on your Mac - now you want a visual editor to work with your code. VS Code lets you edit files visually while running Claude Code in the integrated terminal. Think of it as having your code editor and AI assistant side by side in one window.

Key Concepts

What You’ll Need

Step 1: Start VS Code

Tip: Right-click VS Code in the Dock and select Options > Keep in Dock for easy access later.

Step 2: Create a Project Folder

Step 3: Log In

Claude Code will first ask you to log in. Follow the instructions.

  1. Press Enter to open a browser window
  2. Log in or create an account with Anthropic
  3. Copy the code and paste it back in the terminal
  4. Press Enter

You are now logged in. You only need to do this once.

Step 4: Open the Folder in VS Code

You should now see TEST_CLAUDE in the Explorer panel on the left side.

Step 5: Start Claude Code

Step 6: Test the Workflow

Reopening Claude in VS Code Later

After closing VS Code, here’s how to get back to your project:

VS Code remembers your recent folders, so Option A with Open Recent is usually the quickest.

Next Steps

Troubleshooting

Workflow Overview


Created by Steven Ge on December 10, 2025.