How to integrate Claude Code with VS Code and JetBrains IDEs. Use when user asks about IDE integration, VS Code extension, JetBrains plugin, or IDE setup.
Integrates Claude Code with VS Code and JetBrains IDEs for native diff viewing and automatic selection context sharing. Use when users ask about IDE setup, VS Code extensions, or JetBrains plugin installation and configuration.
/plugin marketplace add reggiechan74/claude-plugins/plugin install claude-code-metaskill@claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Claude Code integrates with Visual Studio Code through a native extension, providing a dedicated sidebar panel with IDE-native features.
Native IDE experience:
Integration features:
Requirements:
Installation: Download from the Visual Studio Code Extension Marketplace.
Search for "Claude Code" in VS Code Extensions panel.
Auto-accept mode: Enable to automatically apply Claude's edits without manual review.
File attachments: Use @-mentions or the file picker to attach files to conversations.
MCP servers: Configure MCP integrations for extended functionality.
The extension supports Amazon Bedrock and Google Vertex AI through environment variable configuration in VS Code settings:
Settings (JSON):
{
"claude-code.env": {
"ANTHROPIC_API_KEY": "your-key",
"AWS_REGION": "us-east-1",
"ANTHROPIC_VERTEX_PROJECT_ID": "your-project"
}
}
Features not yet implemented:
Note: These features are available in the terminal version.
For terminal-based users, the integration auto-installs when running claude from VS Code's integrated terminal.
Features:
Claude Code integrates with JetBrains IDEs through a dedicated plugin, offering features like interactive diff viewing and automatic selection context sharing.
The plugin works with:
Quick launch:
Cmd+Esc (Mac)Ctrl+Esc (Windows/Linux)Diff viewing: Code changes display directly in the IDE diff viewer
Selection context: Current IDE selections automatically share with Claude Code
File references:
Cmd+Option+K (Mac)Alt+Ctrl+K (Linux/Windows)Diagnostic sharing: IDE errors and diagnostics automatically sync with Claude
The plugin may self-install when running claude in the integrated terminal.
Important: Requires full IDE restart to activate.
claude/configauto for automatic IDE detectionGo to: Settings → Tools → Claude Code
Configuration options:
If ESC doesn't interrupt operations:
Option 1: Settings → Tools → Terminal → Uncheck "Move focus to the editor with Escape"
Option 2: Delete the "Switch focus to Editor" shortcut
Install the plugin on the remote host: Settings → Plugin (Host)
Set Claude command as:
wsl -d Ubuntu -- bash -lic "claude"
Replace Ubuntu with your distribution name.
Plugin not working:
WSL-specific issues: Consult the dedicated troubleshooting guide in the Claude Code documentation.
Diff viewer not showing:
/config has diff tool set to autoWhen auto-edit is enabled, Claude Code may modify IDE configuration files. Consider using manual approval mode for edits when using JetBrains IDEs.
| Feature | VS Code | JetBrains |
|---|---|---|
| UI Integration | Sidebar panel | Terminal-based |
| Diff Viewing | Inline diffs | Native diff viewer |
| File Attachment | @-mentions, picker | Selection sharing |
| Shortcuts | Standard | Customizable |
| MCP Support | Yes (basic) | Via CLI |
| Multi-session | Yes | Via CLI |
| Maturity | Beta | Stable |
Cmd+Esc to open Claude CodeBoth integrations are actively developed. Upcoming features may include: