VS Code Setup for Claude Code
This guide covers how to configure Visual Studio Code to work optimally with Claude Code, including managing the Claude icon in your Activity Bar.
Understanding the Claude Code Icon Location
Claude Code uses the Activity Bar (the vertical icon bar on the left side of VS Code), not the status bar at the bottom. The Claude Code icon appears as a spark/lightning bolt icon (⚡).
Repositioning the Claude Code Icon
Method 1: Drag and Drop
- Locate the Claude Code spark icon (⚡) in the Activity Bar (left side of VS Code)
- Click and drag the icon up or down to reorder it
- Release when it's in your preferred position
Method 2: Right-Click Menu
- Right-click on the Claude Code spark icon in the Activity Bar
- Select one of the following options:
- Move to Top - Places it at the top of the Activity Bar
- Move Up - Moves it up one position
- Move Down - Moves it down one position
Showing/Hiding the Claude Code Icon
If you don't see the Claude Code icon in your Activity Bar:
- Right-click anywhere on the Activity Bar
- Look for "Claude Code" in the list
- Check/uncheck it to show or hide the icon
Opening Claude Code Panel Location
You can configure where the Claude Code panel opens:
Panel Locations
| Location | Description |
|---|---|
| Sidebar | Opens in the left sidebar (alongside file explorer) |
| Panel | Opens in the bottom panel (alongside terminal) |
| Secondary Sidebar | Opens in the right sidebar (VS Code 1.97+) |
Changing Panel Location
- Open Claude Code by clicking the spark icon
- Right-click on the Claude Code tab header
- Select "Move to..." and choose your preferred location
Or drag the Claude Code tab to your preferred panel area.
Keyboard Shortcuts
Default Shortcuts
| Action | Mac | Windows/Linux |
|---|---|---|
| Open Claude Code | Click spark icon | Click spark icon |
| Toggle Panel | Cmd + J |
Ctrl + J |
| Toggle Sidebar | Cmd + B |
Ctrl + B |
Setting a Custom Shortcut
- Open Keyboard Shortcuts:
- Mac:
Cmd + K, thenCmd + S - Windows/Linux:
Ctrl + K, thenCtrl + S
- Mac:
- Search for "Claude"
- Click the + icon next to the command you want to customize
- Press your desired key combination
- Press Enter to save
Workspace Trust
When opening a new project, VS Code may ask about workspace trust. Claude Code requires a trusted workspace to function fully.
- Click "Yes, I trust the authors" for projects you're working on
- Restricted mode limits Claude Code's capabilities
Terminal Integration
Claude Code works best with proper terminal access. Ensure your default terminal is configured:
{
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.defaultProfile.linux": "bash"
}
Add these to your .vscode/settings.json or user settings.
Troubleshooting
Claude Code Icon Not Visible
Check extension is installed:
- Open Extensions panel (
Cmd/Ctrl + Shift + X) - Search for "Claude Code"
- Ensure it's installed and enabled
- Open Extensions panel (
Check Activity Bar visibility:
- Right-click on Activity Bar
- Ensure "Claude Code" is checked
Reload VS Code:
- Open Command Palette (
Cmd/Ctrl + Shift + P) - Type:
Developer: Reload Window
- Open Command Palette (
Extension Not Working
- Check authentication: Claude Code requires authentication with your Anthropic account
- Check workspace trust: Ensure the workspace is trusted
- Check for updates: Update the extension to the latest version
Panel Opens in Wrong Location
- Right-click the Claude Code tab header
- Select "Move to..." and choose your preferred location
- VS Code remembers this preference for future sessions
Recommended VS Code Settings
Add these to your .vscode/settings.json for an optimal experience:
{
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"terminal.integrated.scrollback": 10000
}
Differences from Other Extensions
| Feature | Claude Code | Cline | GitHub Copilot |
|---|---|---|---|
| Icon Location | Activity Bar | Activity Bar + Status Bar | Activity Bar + Status Bar |
| Status Bar Position Setting | No | Yes (claude-dev.statusBar.position) |
Yes |
| Panel Location | Configurable | Configurable | Fixed |
Note: The claude-dev.statusBar.position setting is for the Cline extension, not the official Claude Code extension.