Skip to main content
Claude Code integrates with JetBrains IDEs through a dedicated plugin, providing features like interactive diff viewing, selection context sharing, and more.

Supported IDEs

The Claude Code plugin works with most JetBrains IDEs, including:
  • IntelliJ IDEA
  • PyCharm
  • Android Studio
  • WebStorm
  • PhpStorm
  • GoLand

Features

  • Quick launch: use Cmd+Esc (Mac) or Ctrl+Esc (Windows/Linux) to open Claude Code directly from your editor, or click the Claude Code button in the UI
  • Diff viewing: Claude Code opens code changes in the IDE diff viewer instead of the terminal; change this with the Diff tool setting in /config
  • Selection context: the current selection or tab in the IDE is automatically shared with Claude Code. Read deny rules block this sharing for matching files
  • File reference shortcuts: use Cmd+Option+K (Mac) or Alt+Ctrl+K (Linux/Windows) to insert file references such as @src/auth.ts#L1-99
  • Diagnostic sharing: Claude reads the IDE’s inspection diagnostics, such as lint and syntax errors, by calling the getDiagnostics tool; Claude Code doesn’t request diagnostics from the plugin on its own after edits

Installation

The plugin runs the claude command in your IDE’s integrated terminal and connects to it. It does not bundle its own copy of the CLI, so install both pieces:
1

Install the Claude Code CLI

Follow the quickstart to install the CLI if you haven’t already. The plugin shows a “Cannot launch Claude Code” notification when claude isn’t on your PATH.
2

Install the JetBrains plugin

Install the Claude Code plugin from the JetBrains Marketplace and restart your IDE.
If claude is installed somewhere your IDE can’t find, set the full path in the plugin’s Claude command setting. Claude Code works with any paid Claude subscription (Pro, Max, Team, or Enterprise) or a Claude Console account, and no API key is required. You’ll be prompted to log in the first time you run claude.

Usage

From your IDE

Run claude from your IDE’s integrated terminal, and all integration features will be active.

From external terminals

Use the /ide command in any external terminal to connect Claude Code to your JetBrains IDE and activate all features:
When the connection succeeds, Claude Code confirms with a message like Connected to IntelliJ IDEA. If Claude Code detects a running IDE that doesn’t have the plugin, /ide installs the plugin for you and asks you to restart the IDE. If you want Claude to have access to the same files as your IDE, start Claude Code from the same directory as your IDE project root.

Configuration

Claude Code settings

Configure IDE integration through Claude Code’s settings:
  1. Run claude
  2. Enter the /config command
  3. Set Diff tool to auto to show diffs in the IDE, or terminal to keep them in the terminal
The Diff tool entry appears in /config only when Claude Code is connected to the IDE, so run claude from the JetBrains terminal or run /ide first from an external terminal. See diffTool for the underlying setting.

Plugin settings

Configure the Claude Code plugin by going to Settings → Tools → Claude Code [Beta]:

General settings

  • Claude command: specify a custom command to run Claude, for example claude, /usr/local/bin/claude, or npx @anthropic-ai/claude-code
  • Suppress notification for Claude command not found: skip notifications about not finding the Claude command
  • Enable using Option+Enter for multi-line prompts: on macOS only. When enabled, Option+Enter inserts new lines in Claude Code prompts. Disable if the Option key is being captured unexpectedly. Requires a terminal restart.
  • Enable automatic updates: automatically check for and install plugin updates, applied on restart
For WSL users: Set wsl -d Ubuntu -- bash -lic "claude" as your Claude command (replace Ubuntu with your WSL distribution name)

ESC key configuration

If the ESC key doesn’t interrupt Claude Code operations in JetBrains terminals:
  1. Go to Settings → Tools → Terminal
  2. Either:
    • Uncheck “Move focus to the editor with Escape”, or
    • Click “Configure terminal keybindings” and delete the “Switch focus to Editor” shortcut
  3. Apply the changes
This allows the ESC key to properly interrupt Claude Code operations.

Special configurations

Remote development

When using JetBrains Remote Development, you must install the plugin on the remote host via Settings → Plugin (Host), not on your local client machine.