JetBrains IDEs

Tags

official-docs claude-code-cli

Content

Documentation Index

Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt Use this file to discover all available pages before exploring further.

JetBrains IDEs

Use Claude Code with JetBrains IDEs including IntelliJ, PyCharm, WebStorm, and more

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:

Features

Installation

Marketplace Installation

Find and install the Claude Code plugin from the JetBrains marketplace and restart your IDE.

If you haven't installed Claude Code yet, see our quickstart guide for installation instructions.

After installing the plugin, you may need to restart your IDE completely for it to take effect.

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:

```bash theme={null} claude


```text theme={null}
/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 the diff tool to auto to show diffs in the IDE, or terminal to keep them in the terminal

Plugin Settings

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

General Settings

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:
  3. Uncheck "Move focus to the editor with Escape", or
  4. Click "Configure terminal keybindings" and delete the "Switch focus to Editor" shortcut
  5. 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 in the remote host via Settings → Plugin (Host).

The plugin must be installed on the remote host, not on your local client machine.

WSL Configuration

WSL users may need additional configuration for IDE detection to work properly. See our WSL troubleshooting guide for detailed setup instructions.

WSL configuration may require:

Troubleshooting

Plugin Not Working

IDE Not Detected

Command Not Found

If clicking the Claude icon shows "command not found":

  1. Verify Claude Code is installed: npm list -g @anthropic-ai/claude-code
  2. Configure the Claude command path in plugin settings
  3. For WSL users, use the WSL command format mentioned in the configuration section

Security Considerations

When Claude Code runs in a JetBrains IDE with auto-edit permissions enabled, it may be able to modify IDE configuration files that can be automatically executed by your IDE. This may increase the risk of running Claude Code in auto-edit mode and allow bypassing Claude Code's permission prompts for bash execution.

When running in JetBrains IDEs, consider:

For additional help, see our troubleshooting guide.