Claude Code IDE Extensions: VS Code and JetBrains Setup

How to install and use Claude Code extensions for VS Code and JetBrains IDEs. Step-by-step setup, keyboard shortcuts, and tips for getting the most out of Claude Code inside your editor.

💥 50p impulse-buy: Power Prompts PDF (first 10 buyers) 30 battle-tested Claude Code prompts · 8-page PDF · paste into CLAUDE.md and never re-type a prompt again · 50p impulse-buy, no commitment

Claude Code's official IDE extensions let you run Claude Code commands without leaving VS Code or JetBrains. The extensions pass your current file and selection as context automatically, making common operations faster.

VS Code extension setup

# Option 1: Install from VS Code Marketplace
# Open VS Code → Extensions (Ctrl+Shift+X) → search "Claude Code" → Install

# Option 2: Install from terminal
code --install-extension anthropic.claude-code

# Option 3: Make sure Claude Code CLI is installed first
npm install -g @anthropic-ai/claude-code
claude --version  # verify CLI works before using extension

VS Code keyboard shortcuts

ActionDefault shortcut (Mac)Default shortcut (Windows/Linux)
Open Claude Code panel⌘+Shift+CCtrl+Shift+C
Send selected code to Claude⌘+Shift+ACtrl+Shift+A
Ask Claude about current file⌘+Shift+FCtrl+Shift+F
Accept Claude suggestionTabTab
Reject Claude suggestionEscEsc
Toggle Claude panel⌘+B (sidebar)Ctrl+B (sidebar)

JetBrains plugin setup

# Install from JetBrains Plugin Marketplace:
# Settings → Plugins → Marketplace → search "Claude Code" → Install → Restart IDE

# Supported IDEs:
# - IntelliJ IDEA (Community + Ultimate)
# - PyCharm (Community + Professional)
# - WebStorm
# - GoLand
# - Rider
# - Android Studio (via JetBrains plugin)

# After install: Tool Windows → Claude Code
# Or: View → Tool Windows → Claude Code

Working with selected code

# VS Code workflow:
# 1. Select code in editor
# 2. Right-click → "Ask Claude about selection"
#    OR press Ctrl+Shift+A (Mac: ⌘+Shift+A)
# 3. Type your request in the Claude panel

# Example prompts after selecting code:
# "What does this function do?"
# "Refactor this to use async/await"
# "Add error handling for edge cases"
# "Write unit tests for this function"
# "Explain the performance implications"

Extension settings (VS Code settings.json)

{
  // Claude Code extension settings
  "claude-code.model": "claude-sonnet-4-6",
  "claude-code.maxTokens": 4096,
  "claude-code.includeFileContext": true,
  "claude-code.autoOpenPanel": false,
  "claude-code.theme": "system",

  // If you use API billing:
  "claude-code.apiKey": "",  // leave empty to use ANTHROPIC_API_KEY env var

  // Keybinding override (keybindings.json):
  // { "key": "ctrl+shift+c", "command": "claude-code.openPanel" }
}

Using CLAUDE.md with the IDE extension

# CLAUDE.md in your project root is automatically loaded by both
# the CLI and the IDE extension. Use it to give Claude project context:

# Example CLAUDE.md sections that help the IDE extension:
# - Coding conventions (naming, patterns)
# - File structure overview
# - Testing framework and patterns
# - Common tasks and how to do them in this codebase

# The extension picks up CLAUDE.md from the workspace root.
# Multi-root workspaces: each folder's CLAUDE.md is loaded for that folder.

Using Claude Code in Cursor

# No dedicated Cursor extension — use the terminal:
# 1. In Cursor: View → Terminal (Ctrl+backtick)
# 2. The terminal panel opens in your project root
# 3. Run: claude
# 4. Claude Code works normally — reads files, edits code, runs commands

# Tip: Cursor's AI and Claude Code are complementary.
# Use Cursor's Tab autocomplete for flow coding.
# Use Claude Code for multi-file refactors, PR review, and complex tasks.

Comparing IDE extension vs terminal

CapabilityIDE ExtensionTerminal (Claude CLI)
Auto-pass current file contextYesNo (type path manually or use /read)
Inline diff viewYes (editor gutter)No (text diff output only)
Keyboard shortcutsYes (configurable)No (shell shortcuts only)
Headless / CI modeNoYes (--print flag)
MCP server accessYes (via CLI)Yes
Hooks (PostToolUse)Yes (via CLI)Yes
SSH remote useVia Remote SSH extensionNative

For cost estimation with the IDE extension, use claude-cost-calc.vercel.app. For pricing across all Claude models, see prompt-pricing.vercel.app.

Frequently asked questions

Does Claude Code have a VS Code extension?
Yes. The Claude Code VS Code extension is available in the VS Code Marketplace. It embeds a Claude Code terminal panel directly in VS Code so you can run Claude Code commands without leaving your editor. Install: open VS Code → Extensions (Ctrl+Shift+X) → search 'Claude Code'.
Does Claude Code work with JetBrains IDEs (IntelliJ, PyCharm, WebStorm)?
Yes. The Claude Code JetBrains plugin is available in the JetBrains Plugin Marketplace. It supports IntelliJ IDEA, PyCharm, WebStorm, GoLand, and other JetBrains products. Install: Settings → Plugins → search 'Claude Code'.
What does the IDE extension add over using Claude Code in a terminal?
The main benefit is context: the extension automatically passes the currently open file and selected code to Claude Code, so you don't need to type file paths. It also shows Claude Code output inline with file changes highlighted, and adds keyboard shortcuts for common operations.
Can I use Claude Code in Cursor or Windsurf?
Claude Code works in any terminal, including those embedded in Cursor or Windsurf. There's no dedicated Cursor/Windsurf plugin, but you can open a terminal panel in either IDE and run `claude` from there.
Is the IDE extension free?
The extension itself is free to install. You still need a Claude Code subscription or API key to use it. Claude.ai Pro ($20/mo) gives limited Claude Code access; Max plans ($100–200/mo) give full access; API billing is pay-per-token.

Free tools

Cost Calculator → API Cookbook → Diff Summarizer → Skills Browser →

More examples

Claude API Python QuickstartClaude API Node.js / TypeScript QuickstartClaude API Streaming in PythonClaude API Streaming in Node.js / TypeScriptClaude API Tool Use in PythonClaude API Tool Use in Node.js / TypeScript