Supported IDEs
VS Code
Install the Claude Code extension from the VS Code Marketplace.
Cursor
Supported via the same VS Code-compatible extension.
Windsurf
Supported via the same VS Code-compatible extension.
JetBrains IDEs
IntelliJ IDEA, PyCharm, WebStorm, GoLand, Rider, CLion, RubyMine, DataGrip, DataSpell, Aqua, Android Studio, and more. Install the Claude Code plugin from the JetBrains Marketplace.
Only one Claude Code instance can be connected to VS Code at a time.
Installing the extension or plugin
- VS Code / Cursor / Windsurf
- JetBrains
The /ide command
The /ide command manages your IDE connection from within Claude Code.
/ide opens an interactive selector listing all IDEs that have the Claude Code extension or plugin installed and are currently running. Select an IDE to connect, or select None to disconnect.
/ide open opens the current project (or active worktree) in a connected IDE. For VS Code-based editors, this uses the code CLI. For JetBrains IDEs, you are shown the path to open manually.
Auto-connect
Claude Code can connect to your IDE automatically when it starts. Enable auto-connect in one of these ways:- Run
/configand enable Auto-connect to IDE. - Start Claude Code with the
--ideflag. - Set the environment variable
CLAUDE_CODE_AUTO_CONNECT_IDE=1.
CLAUDE_CODE_AUTO_CONNECT_IDE=0.
Features available through IDE integration
When Claude Code is connected to your IDE, the following capabilities are available:- Diff view — Claude can display code changes as a visual diff directly in your editor rather than in the terminal.
- File opening — Claude can open specific files and jump to exact line numbers.
- Workspace context — Claude receives the list of workspace folders open in your IDE, helping it understand multi-root projects.
- Extension/plugin installation — The
/idecommand can install the Claude Code extension or plugin into a running IDE without leaving the terminal.
Viewing diffs in your IDE
When Claude modifies files and your IDE is connected, diffs are surfaced in the IDE’s native diff viewer. This gives you syntax highlighting, side-by-side comparison, and inline accept/reject controls. If multiple VS Code windows are open, Claude connects to the one whose workspace folder matches the current working directory. Other running instances are listed as unavailable:Connection status
The IDE connection status (connected, pending, or disconnected) is reflected in the Claude Code UI. The connection goes through MCP using either WebSocket (ws:) or SSE (http:) transport, depending on how the extension exposes itself.
The connection attempt times out after 35 seconds. If the IDE does not respond within that window, Claude Code reports a timeout and returns to the disconnected state.
Troubleshooting
No available IDEs detected
No available IDEs detected
- Confirm the extension or plugin is installed in your IDE.
- For JetBrains IDEs, ensure you have fully restarted the IDE after installing the plugin — a reload is not sufficient.
- Make sure the IDE is running before opening Claude Code.
- The IDE’s workspace or project folder must match the directory where you launched Claude Code.
Connection timed out
Connection timed out
- The MCP connection attempt times out after 35 seconds. Try running
/ideagain to reconnect. - Check that no firewall or security policy is blocking local loopback connections.
- Restarting the IDE and then re-running
/ideoften resolves transient failures.
Failed to connect
Failed to connect
- Run
/ideand select None to disconnect, then select the IDE again to retry. - If the IDE was updated recently, restart it so the extension picks up any changes.
JetBrains: plugin not found after install
JetBrains: plugin not found after install
The JetBrains plugin requires a complete IDE restart (not just a project reload). Close and reopen the IDE, then run
/ide to connect.If the plugin still does not appear, visit the plugin installation docs at:
https://docs.claude.com/s/claude-code-jetbrains