Claude Code works inside IntelliJ IDEA, PyCharm, WebStorm, Android Studio, PhpStorm, GoLand and other JetBrains IDEs through an official plugin. You get a one-key launcher, Claude’s edits in the IDE’s own diff viewer, your current selection shared automatically and IDE inspection errors that Claude can read.
The plugin is a bridge, not a separate AI. It runs the normal claude command in your IDE’s terminal and connects to it, so you need both the Claude Code CLI and the plugin.
This guide covers supported IDEs, installation step by step, launching and connecting with /ide, shortcuts, diff settings, plugin settings, WSL and remote development setup, a daily workflow, security tips and fixes for “IDE not detected” and “command not found”. It follows Anthropic’s official Claude Code documentation as of December 2026.
- Install: the Claude Code CLI, then the “Claude Code [Beta]” plugin from JetBrains Marketplace, then restart the IDE.
- Launch:
Cmd+Esc(Mac) orCtrl+Esc(Windows/Linux), or runclaudein the IDE terminal. - External terminal: run
claude, then/ide. - File reference:
Cmd+Option+K/Alt+Ctrl+Kinserts@file#L1-99. - Account: any paid Claude plan or a Console account; no API key needed.
- WSL “No available IDEs”: add a firewall rule or switch WSL2 to mirrored networking.
Supported IDEs and Features
The plugin works with most JetBrains IDEs, including IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand.
| Feature | What it does |
|---|---|
| Quick launch | Cmd+Esc or Ctrl+Esc, or the Claude Code button, opens Claude Code from the editor |
| Diff viewing | Claude’s changes open in the IDE diff viewer instead of the terminal |
| Selection context | Your current selection or open tab is shared with Claude automatically |
| File references | Cmd+Option+K / Alt+Ctrl+K inserts references like @src/auth.ts#L1-99 |
| Diagnostics | Claude can read IDE inspection results such as lint and syntax errors through the getDiagnostics tool |
Claude does not automatically request diagnostics after each edit; ask it to check the IDE problems when you want that. Read deny rules in your settings also block selection sharing for matching files, which is handy for secrets.
Install Claude Code in IntelliJ or PyCharm
- Install the CLI. Follow our Claude Code install guide for Windows, Mac or Linux. Check it works with
claude --version. - Install the plugin. In your IDE open Settings > Plugins > Marketplace, search for Claude Code [Beta] and click Install. Anthropic submits this plugin to the JetBrains Marketplace.
- Restart the IDE. A full restart is needed, sometimes more than once.
- Open your project and open the integrated terminal.
- Run
claudeand log in with your Pro, Max, Ultra, Team or Enterprise subscription, or a Claude Console account. No API key is required. - Test it: select a function and ask “explain the selected code”. Claude should refer to your selection.
If you see “Cannot launch Claude Code”, the IDE cannot find claude on its PATH. Set the full path in the plugin’s Claude command setting (below). Not sure which plan you need? See our Claude Code pricing guide.
Launch and Connect
From the IDE terminal
Run claude in the IDE’s integrated terminal. All integration features turn on automatically.
From an external terminal
If you prefer iTerm, Windows Terminal or another app:
cd /path/to/your/project
claude
/ide
On success you see a message such as Connected to IntelliJ IDEA. Start Claude Code from the same folder as your IDE project root so both see the same files.
Shortcuts and Daily Workflow
| Action | Mac | Windows/Linux |
|---|---|---|
| Open Claude Code | Cmd+Esc |
Ctrl+Esc |
| Insert file reference | Cmd+Option+K |
Alt+Ctrl+K |
| Interrupt Claude | Esc (see ESC fix below) |
Esc |
| Undo Claude’s edits | /rewind or Esc twice |
|
A simple workflow that suits JetBrains users:
- Select the code you want to change and press
Cmd+Esc/Ctrl+Esc. - Describe the change. For bigger work, start in Plan Mode with
Shift+Tab; our Plan Mode guide explains it. - Review each change in the IDE diff viewer, where you can use JetBrains’ familiar side-by-side view.
- Ask “check the IDE problems for files you changed” so Claude reads inspection results.
- Run tests from the IDE or ask Claude to run them. If something breaks, use our Claude Code checkpoints guide to rewind.
All slash commands are in our Claude Code commands cheat sheet.
Diff Tool and Plugin Settings
Diff tool in Claude Code
- Run
claudefrom the JetBrains terminal, or run/idefrom an external terminal. The setting only appears when connected. - Run
/config. - Set Diff tool to
autoto show diffs in the IDE, orterminalto keep them in the terminal.
The underlying key is diffTool; our Claude Code settings guide explains where settings are stored.
Plugin settings
Open Settings > Tools > Claude Code [Beta]:
- Claude command: a custom command such as
claude,/usr/local/bin/claudeornpx @anthropic-ai/claude-code. - Suppress notification when Claude command is not found.
- Enable Option+Enter for multi-line prompts (macOS). If Option is captured unexpectedly, turn this off and clear Use Option as Meta key in Settings > Tools > Terminal, then restart the terminal.
- Enable automatic updates for the plugin, applied on restart.
Make ESC interrupt Claude
JetBrains terminals use ESC to jump back to the editor. Go to Settings > Tools > Terminal and either uncheck “Move focus to the editor with Escape” or open “Configure terminal keybindings” and delete the “Switch focus to Editor” shortcut.
WSL Setup
If Claude Code is installed in WSL and the IDE runs on Windows, set the plugin’s Claude command to:
wsl -d Ubuntu -- bash -lic "claude"
Replace Ubuntu with your distribution name. If /ide shows “No available IDEs detected”, WSL2’s NAT networking or Windows Firewall is blocking the connection. Fix it one of two ways:
Option 1: firewall rule (recommended)
- In WSL run
hostname -I. If the address is172.21.123.45, your subnet is172.21.0.0/16. - In PowerShell as Administrator:
New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16 - Restart the IDE and Claude Code.
Option 2: mirrored networking
On Windows 11 22H2 or later, add this to .wslconfig in your Windows user folder, then run wsl --shutdown:
[wsl2]
networkingMode=mirrored
WSL1 uses the host network directly and is not affected.
Remote Development
With JetBrains Remote Development (Gateway), install the plugin on the remote host via Settings > Plugin (Host), not on your local client. Claude Code must also be installed on that host, because it runs where the project lives.
JetBrains Plugin vs VS Code Extension
| JetBrains plugin | VS Code extension | |
|---|---|---|
| How it runs | Runs the claude CLI in the IDE terminal |
Has its own chat panel |
| Needs CLI installed | Yes | See the extension docs |
| Diffs | IDE diff viewer | VS Code diff view |
/config menu |
Yes (terminal) | Uses its own settings |
Use whichever IDE you already live in. Both read the same settings.json files. More in our Claude Code VS Code extension guide.
Security Tips
In acceptEdits mode, Claude may edit IDE configuration files that the IDE can execute automatically, which could bypass Bash permission prompts. Anthropic recommends:
- Use Manual mode for edits in JetBrains IDEs, because acceptEdits and auto mode approve edits in your working directory without asking (except protected paths).
- Only use Claude with trusted prompts and repositories.
- Know which files Claude can modify, and deny reads of secrets.
Troubleshooting
Plugin installed but features do not appear
Run Claude Code from the project root, check the plugin is enabled, restart the IDE completely (maybe more than once) and, for remote development, install it on the host.
“No available IDEs detected”
Verify the plugin is enabled, restart the IDE, launch claude from the IDE terminal, and on WSL apply the firewall or mirrored networking fix.
“command not found” or “Cannot launch Claude Code”
Run claude --version in a terminal. If it works there, put the full path in the Claude command setting. On WSL use the wsl -d command format.
ESC does not stop Claude
Change the terminal ESC behaviour in Settings > Tools > Terminal as described above.
Diffs show in the terminal
Connect first, then set Diff tool to auto in /config.
Option key types strange characters on Mac
Turn off Option+Enter in the plugin and clear “Use Option as Meta key”.
Login or install problems
These are CLI issues. See our Claude Code not working fixes.
FAQ
Is Claude Code free in IntelliJ?
The plugin is free, but Claude Code needs a paid Claude plan or a Console account with usage billing.
Does the plugin work in Android Studio?
Yes. Android Studio is on the supported list.
Do I need an API key?
No. Log in with your Claude subscription when you first run claude.
Can I use Claude Code with JetBrains AI Assistant installed?
They are separate plugins. Claude Code runs through its own terminal session, so you can keep both and choose which to use.
Why is it called Beta?
The Marketplace listing is named “Claude Code [Beta]”. Features may still change, so keep automatic updates on.
Can Claude see my IDE errors?
Yes, through the getDiagnostics tool when you ask it to check them.




