💬 hippo: This post is part of the Claude Code Official Docs Breakdown series. If you write code in JetBrains IDEs, this guide shows you how to make Claude Code feel like a native part of your editor rather than a bolted-on external tool.


1. What Does This Integration Do?

Claude Code is a terminal-first AI coding assistant, and it pairs cleanly with JetBrains IDEs through a dedicated official plugin. The plugin renders Claude’s proposed edits directly inside your IDE’s native Diff viewer (a side-by-side comparison showing original code on the left and proposed changes on the right) and automatically shares your current code selection and IDE diagnostics with Claude.

The core value is simple: stop bouncing back and forth between your terminal and your IDE.

The plugin supports the major products across the JetBrains family:

IDE Primary Use Case
IntelliJ IDEA Java / Kotlin development
PyCharm Python development
Android Studio Android app development
WebStorm Frontend / Node.js development
PhpStorm PHP development
GoLand Go development

Plugin settings live in the same place across all JetBrains IDEs: Settings → Tools → Claude Code [Beta]


2. Official Docs Breakdown

2.1 Five Core Capabilities

Once the plugin is active, you get five integrated workflows:

Feature Shortcut (macOS) Shortcut (Windows/Linux) Description
Quick launch Cmd + Esc Ctrl + Esc Open Claude Code directly from the editor
Diff viewing Automatic Automatic Display proposed edits in the IDE’s native Diff viewer
Selection context Automatic Automatic Share the current selection and active tab with Claude automatically
File reference Cmd + Option + K Alt + Ctrl + K Insert a @File#L1-99 style reference
Diagnostics sharing Automatic Automatic Forward lint warnings and syntax errors to Claude automatically

Diff viewing is the standout feature. Without the plugin, Claude’s edits appear as plain text in the terminal, which is tedious to review. Inside the IDE, changes open in the standard Diff view where accepting or rejecting edits takes one click.

Selection context also removes daily friction: highlight a block of code, summon Claude, and the plugin automatically passes the file path and line range—no more typing out “I’m looking at lines 50–75 of UserService.java.”

2.2 Installation and Startup

Prerequisite: Install the Claude Code CLI first.

1
2
# Install Claude Code CLI
npm install -g @anthropic-ai/claude-code

Install the plugin: Open Settings → Plugins → Marketplace in your IDE, search for “Claude Code [Beta]”, click Install, and restart the IDE.

There are two ways to start a session; the first is recommended:

1
2
3
4
5
6
7
# Option 1: Launch from the IDE's built-in terminal (recommended)
# Open the IDE's built-in terminal at the project root and run:
claude

# Option 2: Connect from an external terminal
claude
> /ide

Option 1 is preferred because every integration feature activates automatically. Option 2 requires running /ide manually to connect, and Claude’s working directory must match the project root open in the IDE.

2.3 Configuration and Special Scenarios

Claude Code configuration

To make the Diff viewer trigger automatically, set the diff tool to auto so Claude detects the IDE environment:

1
2
3
claude
> /config
# Set diff tool to auto

Plugin configuration

Path: Settings → Tools → Claude Code [Beta]

Setting Description Platform
Claude command Custom command path for Claude (e.g., claude, /usr/local/bin/claude, or npx @anthropic/claude) All
Suppress notification for Claude command not found Hides the “claude command not found” notification when checked All
Enable using Option+Enter for multi-line prompts Lets you insert newlines in prompts with Option+Enter; disable if Option keystrokes are intercepted unexpectedly (requires terminal restart) macOS only
Enable automatic updates Automatically checks for and installs plugin updates, applied on IDE restart All

Fixing the ESC key conflict

By default, the JetBrains built-in terminal moves focus back to the editor when you press ESC. That breaks a core Claude Code workflow: pressing ESC to interrupt Claude’s output steals focus away from the terminal while Claude keeps running.

To fix it:

  1. Open Settings → Tools → Terminal
  2. Do either of the following:
    • Uncheck “Move focus to the editor with Escape”
    • Or click “Configure terminal keybindings” and remove the “Switch focus to Editor” shortcut

Remote development

When using JetBrains Remote Development (for example, coding over SSH on a remote server), the plugin must be installed on the remote host, not the local client. This is the most common setup mistake.

Installation path: Settings → Plugin (Host)

WSL environments

Windows Subsystem for Linux (WSL) may require additional configuration for the terminal, networking mode, and firewall rules. See the official WSL troubleshooting guide for step-by-step instructions.

Security risk: auto-edit mode

The official docs highlight an important caveat: with auto-edit mode enabled, Claude can modify IDE configuration files, which may execute automatically when the IDE starts. Keep manual approval mode enabled by default, and only use auto-edit for prompts and repositories you fully trust.


3. Hippo’s Field Notes

💬 hippo: Here are the pitfalls I ran into during day-to-day use:

3.1 Plugin Installed, but Diff Viewer Never Opens

The first time I tried the plugin, I installed it in PyCharm and ran claude from an external terminal (iTerm2). Edits still rendered as plain text in the terminal, and the IDE Diff viewer never popped up.

The reason was straightforward: when launched from an external terminal, Claude cannot detect the IDE session automatically. Launching from the IDE’s built-in terminal—or running /ide manually after startup—solves it. I now always run Claude inside the built-in terminal whenever I work in JetBrains.

3.2 IDE Hijacking the ESC Key

This one tripped me up for a while. I would hit ESC in the terminal to stop Claude mid-generation, only to watch focus jump back to the editor while Claude kept streaming output. Tracing it down led straight to JetBrains Terminal’s default Escape keybinding; disabling Escape focus switching (Section 2.3) fixed it cleanly.

3.3 Plugin Missing Under Remote Development

When connecting to a server via IntelliJ SSH Remote Development, I installed the plugin locally and wondered why none of the integrations worked. After some debugging, it clicked: in remote development, the plugin has to be installed on the remote host via Settings → Plugin (Host), not on the local client. The docs state this clearly, yet it is easy to miss on your first setup.

3.4 Staying Safe with auto-edit Mode

I enabled auto-edit mode early on for convenience and later noticed Claude modifying configuration files inside .idea/. Nothing broke, but letting an agent silently alter files that execute on IDE startup is a real risk. My current rule: stay in manual approval mode for daily work, turn on auto-edit only temporarily during large mechanical refactors, and turn it right back off once done.


4. Troubleshooting & FAQ

Plugin Not Working / IDE Not Detected

Check these items in order:

  1. Verify you launched claude from the IDE’s built-in terminal at the project root directory
  2. Confirm the plugin is enabled under Settings → Plugins → Installed
  3. Restart the IDE completely (occasionally two restarts are needed before it registers)
  4. For remote development, verify the plugin is installed on the remote host (Settings → Plugin (Host))
  5. For WSL users, check the WSL troubleshooting guide

Command Not Found

If clicking the Claude icon displays “command not found”, the CLI is either missing or not on the IDE’s PATH:

1
2
# Verify that the CLI is installed
npm list -g @anthropic-ai/claude-code

If it is installed but the IDE still cannot find it, set the full binary path (such as /usr/local/bin/claude) in Settings → Tools → Claude Code [Beta]. WSL users should specify the corresponding WSL command format.


5. Summary

The JetBrains plugin’s real payoff comes down to native Diff viewer integration and automatic context sharing—together, they turn Claude Code from a standalone terminal tool into an integrated part of your IDE. Because the plugin is still in Beta, you may occasionally run into minor terminal flicker or focus quirks, but the core workflow is solid.

Four takeaways to keep in mind: launch from the built-in terminal, fix the ESC keybinding conflict early, install on the host for remote development, and treat auto-edit mode with care.


Series Navigation


Based on the official JetBrains IDEs - Claude Code Docs.

Last updated: 2026-03-31