JetBrains IDEs
Show diff (247 lines)
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -1,10 +1,6 @@
Claude Code integrates with JetBrains IDEs through a dedicated plugin, providing features like interactive diff viewing, selection context sharing, and more.
-##
-
-
-
-Supported IDEs
+## Supported IDEs
The Claude Code plugin works with most JetBrains IDEs, including:
@@ -15,11 +11,7 @@
* PhpStorm
* GoLand
-##
-
-
-
-Features
+## 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`
@@ -27,11 +19,7 @@
* **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
+## 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:
@@ -51,25 +39,13 @@
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, Ultra, Team, or Enterprise) or a Claude Console account, and no API key is required. You’ll be prompted to [log in](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
-##
+## Usage
-
-
-Usage
-
-###
-
-
-
-Run Claude Code from your IDE
+### Run Claude Code from your IDE
Run `claude` from your IDE’s integrated terminal, and all integration features will be active.
-###
-
-
-
-Connect from an external terminal
+### Connect from an external terminal
Use the `/ide` command in any external terminal to connect Claude Code to your JetBrains IDE and activate all features:
@@ -79,17 +55,9 @@
When the connection succeeds, Claude Code confirms with a message like `Connected to IntelliJ IDEA.` 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
-
-
-Configuration
-
-###
-
-
-
-Claude Code settings
+### Claude Code settings
Configure IDE integration through Claude Code’s settings:
@@ -99,19 +67,11 @@
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`](</docs/en/commands>) first from an external terminal. See [`diffTool`](</docs/en/settings-reference#difftool>) for the underlying setting.
-###
-
-
-
-Plugin settings
+### Plugin settings
Configure the Claude Code plugin by going to **Settings → Tools → Claude Code [Beta]** :
-####
-
-
-
-General settings
+#### 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 when Claude Command is not found** : skip notifications about not finding the Claude command
@@ -120,11 +80,7 @@
For WSL users: Set `wsl -d Ubuntu -- bash -lic "claude"` as your Claude command (replace `Ubuntu` with your WSL distribution name)
-####
-
-
-
-ESC key configuration
+#### ESC key configuration
If the ESC key doesn’t interrupt Claude Code operations in JetBrains terminals:
@@ -136,33 +92,17 @@
This allows the ESC key to properly interrupt Claude Code operations.
-##
+## Special configurations
-
-
-Special configurations
-
-###
-
-
-
-Remote development
+### 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.
-###
-
-
-
-WSL configuration
+### WSL configuration
If you’re using Claude Code on WSL2 with a JetBrains IDE and see “No available IDEs detected”, the cause is usually WSL2’s NAT networking or Windows Firewall blocking the connection between WSL2 and the IDE running on the Windows host. WSL1 uses the host’s network directly and isn’t affected.
-####
-
-
-
-Allow WSL2 traffic through Windows Firewall
+#### Allow WSL2 traffic through Windows Firewall
This is the recommended fix because it keeps your existing WSL2 networking mode.
@@ -190,11 +130,7 @@
Close and reopen both so the new rule takes effect.
-####
-
-
-
-Switch WSL2 to mirrored networking
+#### Switch WSL2 to mirrored networking
Mirrored networking requires Windows 11 22H2 or later. If you’re on Windows 10, use the firewall rule above instead. Add this to `.wslconfig` in your Windows user directory:
@@ -203,17 +139,9 @@
Then restart WSL with `wsl --shutdown` from PowerShell.
-##
+## Troubleshooting
-
-
-Troubleshooting
-
-###
-
-
-
-Plugin not working
+### Plugin not working
If the plugin is installed but Claude Code features don’t appear in your IDE:
@@ -222,11 +150,7 @@
* Completely restart the IDE (you may need to do this multiple times)
* For Remote Development, ensure the plugin is installed in the remote host
-###
-
-
-
-IDE not detected
+### IDE not detected
If the `/ide` command shows “No available IDEs detected”:
@@ -235,11 +159,7 @@
* If you expected an automatic connection without running `/ide`, check that you launched `claude` from the IDE’s integrated terminal
* For WSL users, see WSL configuration above
-###
-
-
-
-Command not found
+### Command not found
If clicking the Claude icon shows “command not found”:
@@ -247,11 +167,7 @@
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
+## Security considerations
When Claude Code runs in a JetBrains IDE in [`acceptEdits` permission mode](</docs/en/permission-modes#auto-approve-file-edits-with-acceptedits-mode>), 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 `acceptEdits` mode and allow bypassing Claude Code’s permission prompts for Bash execution. When running in JetBrains IDEs, consider:
@@ -261,11 +177,7 @@
For Claude Code installation or login problems outside the IDE, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>).
-###
-
-
-
-The built-in IDE MCP server
+### The built-in IDE MCP server
When the plugin is active, it runs a local MCP server that the CLI connects to automatically. This is how the CLI opens diffs in the IDE’s native diff viewer, reads your current selection for `@`-mentions, and lets Claude read inspection diagnostics. The server is named `ide` and is hidden from `/mcp` because there’s nothing to configure. If your organization uses a [`PreToolUse` hook](</docs/en/hooks#pretooluse>) to allowlist MCP tools, though, you’ll need to know it exists. **Selection and open-file context.** While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a `⧉ Selected N lines from <file>` line when this happens. If you [queue a message while Claude works](</docs/en/interactive-mode#queue-messages-while-claude-works>), it keeps the selection you had when you pressed `Enter`, whatever you select afterward. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](</docs/en/permissions#read-and-edit>) for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude. **Transport and authentication.** The server listens on an OS-assigned ephemeral port, and the port is not configurable. The transport is unencrypted `ws://`; on loopback, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection against a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The server hosts several tools, but only one is visible to the model. The rest are internal RPC the CLI uses for its own UI, such as opening diffs and reading selections, and are filtered out before the tool list reaches Claude.
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -47,6 +47,8 @@
Install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains Marketplace and restart your IDE.
+The JetBrains Marketplace is third-party software, which Anthropic doesn’t endorse, maintain, or audit. Anthropic submits the Claude Code plugin for publication to the JetBrains Marketplace.
+
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, Ultra, Team, or Enterprise) or a Claude Console account, and no API key is required. You’ll be prompted to [log in](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
##
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -47,7 +47,7 @@
Install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) 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](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
+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, Ultra, Team, or Enterprise) or a Claude Console account, and no API key is required. You’ll be prompted to [log in](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
##
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -75,7 +75,7 @@
/ide
-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.
+When the connection succeeds, Claude Code confirms with a message like `Connected to IntelliJ IDEA.` 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.
##
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -59,7 +59,7 @@
-From your IDE
+Run Claude Code from your IDE
Run `claude` from your IDE’s integrated terminal, and all integration features will be active.
@@ -67,7 +67,7 @@
-From external terminals
+Connect from an external terminal
Use the `/ide` command in any external terminal to connect Claude Code to your JetBrains IDE and activate all features:
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -265,7 +265,7 @@
The built-in IDE MCP server
-When the plugin is active, it runs a local MCP server that the CLI connects to automatically. This is how the CLI opens diffs in the IDE’s native diff viewer, reads your current selection for `@`-mentions, and lets Claude read inspection diagnostics. The server is named `ide` and is hidden from `/mcp` because there’s nothing to configure. If your organization uses a [`PreToolUse` hook](</docs/en/hooks#pretooluse>) to allowlist MCP tools, though, you’ll need to know it exists. **Selection and open-file context.** While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a `⧉ Selected N lines from <file>` line when this happens. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](</docs/en/permissions#read-and-edit>) for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude. **Transport and authentication.** The server listens on an OS-assigned ephemeral port, and the port is not configurable. The transport is unencrypted `ws://`; on loopback, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection against a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The server hosts several tools, but only one is visible to the model. The rest are internal RPC the CLI uses for its own UI, such as opening diffs and reading selections, and are filtered out before the tool list reaches Claude.
+When the plugin is active, it runs a local MCP server that the CLI connects to automatically. This is how the CLI opens diffs in the IDE’s native diff viewer, reads your current selection for `@`-mentions, and lets Claude read inspection diagnostics. The server is named `ide` and is hidden from `/mcp` because there’s nothing to configure. If your organization uses a [`PreToolUse` hook](</docs/en/hooks#pretooluse>) to allowlist MCP tools, though, you’ll need to know it exists. **Selection and open-file context.** While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a `⧉ Selected N lines from <file>` line when this happens. If you [queue a message while Claude works](</docs/en/interactive-mode#queue-messages-while-claude-works>), it keeps the selection you had when you pressed `Enter`, whatever you select afterward. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](</docs/en/permissions#read-and-edit>) for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude. **Transport and authentication.** The server listens on an OS-assigned ephemeral port, and the port is not configurable. The transport is unencrypted `ws://`; on loopback, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection against a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The server hosts several tools, but only one is visible to the model. The rest are internal RPC the CLI uses for its own UI, such as opening diffs and reading selections, and are filtered out before the tool list reaches Claude.
Tool name (as seen by hooks)| What it does| Read-only
---|---|---
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -251,7 +251,7 @@
Security considerations
-When Claude Code runs in a JetBrains IDE in [`acceptEdits` permission mode](</docs/en/permission-modes#auto-approve-file-edits-with-acceptedits-mode>), 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 `acceptEdits` mode and allow bypassing Claude Code’s permission prompts for bash execution. When running in JetBrains IDEs, consider:
+When Claude Code runs in a JetBrains IDE in [`acceptEdits` permission mode](</docs/en/permission-modes#auto-approve-file-edits-with-acceptedits-mode>), 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 `acceptEdits` mode and allow bypassing Claude Code’s permission prompts for Bash execution. When running in JetBrains IDEs, consider:
* Using Manual mode for edits, because `acceptEdits` and auto mode both approve edits inside your working directory without asking, except in [protected paths](</docs/en/permission-modes#protected-paths>)
* Taking extra care to ensure Claude is only used with trusted prompts
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -112,7 +112,7 @@
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
+ * **Suppress notification for when Claude Command is 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
@@ -269,7 +269,7 @@
Tool name (as seen by hooks)| What it does| Read-only
---|---|---
-`mcp__ide__getDiagnostics`| Returns the IDE’s inspection diagnostics, the errors and warnings shown in the editor. Optionally scoped to one file.| Yes
+`mcp__ide__getDiagnostics`| Returns the IDE’s inspection diagnostics, the errors and warnings shown in the editor. Each call covers one file: the file Claude specifies, or the file in your active editor if Claude doesn’t specify one.| Yes
The JetBrains plugin does not expose a code-execution tool to the model. **Listening interface.** Which network interface the server binds to is controlled by **Accept connections from all network interfaces** under **Settings → Tools → Claude Code [Beta] → Networking (Advanced)**. With the setting disabled, the server listens on `127.0.0.1` only and is not reachable from other hosts. With it enabled, the port is reachable from your local network. The setting exists for cases where the CLI cannot reach the IDE over loopback, such as WSL2 with default NAT networking or a remote-IDE setup; see WSL configuration for that scenario.
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -273,4 +273,4 @@
The JetBrains plugin does not expose a code-execution tool to the model. **Listening interface.** Which network interface the server binds to is controlled by **Accept connections from all network interfaces** under **Settings → Tools → Claude Code [Beta] → Networking (Advanced)**. With the setting disabled, the server listens on `127.0.0.1` only and is not reachable from other hosts. With it enabled, the port is reachable from your local network. The setting exists for cases where the CLI cannot reach the IDE over loopback, such as WSL2 with default NAT networking or a remote-IDE setup; see WSL configuration for that scenario.
-Enabling **Accept connections from all network interfaces** makes the IDE MCP port reachable from your local network. Connections still require the auth token from the lock file, but because the transport is unencrypted `ws://`, both the session traffic and that token cross the network in cleartext when the setting is on. Only turn it on when loopback genuinely cannot work. For WSL2, prefer mirrored networking so the Windows loopback interface is shared with the Linux VM and the socket can stay on loopback.
+Enabling **Accept connections from all network interfaces** makes the IDE MCP port reachable from your local network. Connections still require the auth token from the lock file, but because the transport is unencrypted `ws://`, both the session traffic and that token cross the network in cleartext when the setting is on. Only turn it on when loopback can’t work. For WSL2, prefer mirrored networking so the Windows loopback interface is shared with the Linux VM and the socket can stay on loopback.
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -25,7 +25,7 @@
* **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](</docs/en/permissions#read-and-edit>) 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** : after Claude edits a file, Claude Code pulls the IDE’s new diagnostics for that file, such as lint and syntax errors, into the conversation, so Claude notices errors its edits introduce
+ * **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
##
@@ -95,7 +95,7 @@
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`](</docs/en/commands>) first from an external terminal. See [`diffTool`](</docs/en/settings#global-config-settings>) for the underlying setting.
+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`](</docs/en/commands>) first from an external terminal. See [`diffTool`](</docs/en/settings-reference#difftool>) for the underlying setting.
###
@@ -265,7 +265,7 @@
The built-in IDE MCP server
-When the plugin is active, it runs a local MCP server that the CLI connects to automatically. This is how the CLI opens diffs in the IDE’s native diff viewer, reads your current selection for `@`-mentions, and pulls inspection diagnostics into the conversation. The server is named `ide` and is hidden from `/mcp` because there’s nothing to configure. If your organization uses a [`PreToolUse` hook](</docs/en/hooks#pretooluse>) to allowlist MCP tools, though, you’ll need to know it exists. **Selection and open-file context.** While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a `⧉ Selected N lines from <file>` line when this happens. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](</docs/en/permissions#read-and-edit>) for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude. **Transport and authentication.** The server listens on an OS-assigned ephemeral port, and the port is not configurable. The transport is unencrypted `ws://`; on loopback, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection against a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The server hosts several tools, but only one is visible to the model. The rest are internal RPC the CLI uses for its own UI, such as opening diffs and reading selections, and are filtered out before the tool list reaches Claude.
+When the plugin is active, it runs a local MCP server that the CLI connects to automatically. This is how the CLI opens diffs in the IDE’s native diff viewer, reads your current selection for `@`-mentions, and lets Claude read inspection diagnostics. The server is named `ide` and is hidden from `/mcp` because there’s nothing to configure. If your organization uses a [`PreToolUse` hook](</docs/en/hooks#pretooluse>) to allowlist MCP tools, though, you’ll need to know it exists. **Selection and open-file context.** While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a `⧉ Selected N lines from <file>` line when this happens. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](</docs/en/permissions#read-and-edit>) for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude. **Transport and authentication.** The server listens on an OS-assigned ephemeral port, and the port is not configurable. The transport is unencrypted `ws://`; on loopback, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection against a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The server hosts several tools, but only one is visible to the model. The rest are internal RPC the CLI uses for its own UI, such as opening diffs and reading selections, and are filtered out before the tool list reaches Claude.
Tool name (as seen by hooks)| What it does| Read-only
---|---|---
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -49,8 +49,6 @@
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](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
-After installing the plugin, you may need to restart your IDE completely for it to take effect.
-
##
@@ -255,7 +253,7 @@
When Claude Code runs in a JetBrains IDE in [`acceptEdits` permission mode](</docs/en/permission-modes#auto-approve-file-edits-with-acceptedits-mode>), 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 `acceptEdits` mode and allow bypassing Claude Code’s permission prompts for bash execution. When running in JetBrains IDEs, consider:
- * Using manual approval mode for edits
+ * Using Manual mode for edits, because `acceptEdits` and auto mode both approve edits inside your working directory without asking, except in [protected paths](</docs/en/permission-modes#protected-paths>)
* Taking extra care to ensure Claude is only used with trusted prompts
* Being aware of which files Claude Code has access to modify
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -25,7 +25,7 @@
* **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](</docs/en/permissions#read-and-edit>) 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** : diagnostic errors from the IDE, such as lint and syntax errors, are automatically shared with Claude as you work
+ * **Diagnostic sharing** : after Claude edits a file, Claude Code pulls the IDE’s new diagnostics for that file, such as lint and syntax errors, into the conversation, so Claude notices errors its edits introduce
##
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -22,7 +22,7 @@
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** : code changes can be displayed directly in the IDE diff viewer instead of the terminal
+ * **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](</docs/en/permissions#read-and-edit>) 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** : diagnostic errors from the IDE, such as lint and syntax errors, are automatically shared with Claude as you work
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -77,7 +77,7 @@
/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.
+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.
##
@@ -148,9 +148,7 @@
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.
+When using JetBrains Remote Development, you must install the plugin on the remote host via **Settings → Plugin (Host)** , not on your local client machine.
###
@@ -176,7 +174,7 @@
hostname -I
-Note the subnet, for example `172.21.123.45` is in `172.21.0.0/16`.
+Note your subnet: take the first two segments of the address and follow them with `.0.0/16`. For example, if the address is `172.21.123.45`, your subnet is `172.21.0.0/16`.
2
@@ -230,11 +228,11 @@
IDE not detected
-If running `claude` shows “No available IDEs detected”:
+If the `/ide` command shows “No available IDEs detected”:
* Verify the plugin is installed and enabled
* Restart the IDE completely
- * Check that you’re running Claude Code from the integrated terminal
+ * If you expected an automatic connection without running `/ide`, check that you launched `claude` from the IDE’s integrated terminal
* For WSL users, see WSL configuration above
###
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -95,7 +95,9 @@
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
+ 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`](</docs/en/commands>) first from an external terminal. See [`diffTool`](</docs/en/settings#global-config-settings>) for the underlying setting.
###
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -260,3 +260,19 @@
* Being aware of which files Claude Code has access to modify
For Claude Code installation or login problems outside the IDE, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>).
+
+###
+
+
+
+The built-in IDE MCP server
+
+When the plugin is active, it runs a local MCP server that the CLI connects to automatically. This is how the CLI opens diffs in the IDE’s native diff viewer, reads your current selection for `@`-mentions, and pulls inspection diagnostics into the conversation. The server is named `ide` and is hidden from `/mcp` because there’s nothing to configure. If your organization uses a [`PreToolUse` hook](</docs/en/hooks#pretooluse>) to allowlist MCP tools, though, you’ll need to know it exists. **Selection and open-file context.** While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a `⧉ Selected N lines from <file>` line when this happens. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](</docs/en/permissions#read-and-edit>) for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude. **Transport and authentication.** The server listens on an OS-assigned ephemeral port, and the port is not configurable. The transport is unencrypted `ws://`; on loopback, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection against a local attacker. Each IDE start generates a fresh random auth token, writes it to a lock file at `~/.claude/ide/<port>.lock`, and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The server hosts several tools, but only one is visible to the model. The rest are internal RPC the CLI uses for its own UI, such as opening diffs and reading selections, and are filtered out before the tool list reaches Claude.
+
+Tool name (as seen by hooks)| What it does| Read-only
+---|---|---
+`mcp__ide__getDiagnostics`| Returns the IDE’s inspection diagnostics, the errors and warnings shown in the editor. Optionally scoped to one file.| Yes
+
+The JetBrains plugin does not expose a code-execution tool to the model. **Listening interface.** Which network interface the server binds to is controlled by **Accept connections from all network interfaces** under **Settings → Tools → Claude Code [Beta] → Networking (Advanced)**. With the setting disabled, the server listens on `127.0.0.1` only and is not reachable from other hosts. With it enabled, the port is reachable from your local network. The setting exists for cases where the CLI cannot reach the IDE over loopback, such as WSL2 with default NAT networking or a remote-IDE setup; see WSL configuration for that scenario.
+
+Enabling **Accept connections from all network interfaces** makes the IDE MCP port reachable from your local network. Connections still require the auth token from the lock file, but because the transport is unencrypted `ws://`, both the session traffic and that token cross the network in cleartext when the setting is on. Only turn it on when loopback genuinely cannot work. For WSL2, prefer mirrored networking so the Windows loopback interface is shared with the Linux VM and the socket can stay on loopback.
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -253,7 +253,7 @@
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:
+When Claude Code runs in a JetBrains IDE in [`acceptEdits` permission mode](</docs/en/permission-modes#auto-approve-file-edits-with-acceptedits-mode>), 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 `acceptEdits` mode and allow bypassing Claude Code’s permission prompts for bash execution. When running in JetBrains IDEs, consider:
* Using manual approval mode for edits
* Taking extra care to ensure Claude is only used with trusted prompts
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -33,13 +33,21 @@
Installation
-###
-
-
-
-Marketplace installation
-
-Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see the [quickstart guide](</docs/en/quickstart>) for installation instructions. 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](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
+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](</docs/en/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](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) 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](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
After installing the plugin, you may need to restart your IDE completely for it to take effect.
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -39,7 +39,7 @@
Marketplace installation
-Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see the [quickstart guide](</docs/en/quickstart>) for installation instructions.
+Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see the [quickstart guide](</docs/en/quickstart>) for installation instructions. 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](</docs/en/authentication#log-in-to-claude-code>) the first time you run `claude`.
After installing the plugin, you may need to restart your IDE completely for it to take effect.
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -1,9 +1,3 @@
-> ## 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.
-
Claude Code integrates with JetBrains IDEs through a dedicated plugin, providing features like interactive diff viewing, selection context sharing, and more.
##
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -29,7 +29,7 @@
* **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** : code changes can be displayed directly in the IDE diff viewer instead of the terminal
- * **Selection context** : the current selection or tab in the IDE is automatically shared with Claude Code
+ * **Selection context** : the current selection or tab in the IDE is automatically shared with Claude Code. [`Read` deny rules](</docs/en/permissions#read-and-edit>) 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** : diagnostic errors from the IDE, such as lint and syntax errors, are automatically shared with Claude as you work
Show diff (251 lines)
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -1,3 +1,9 @@
+> ## 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.
+
Claude Code integrates with JetBrains IDEs through a dedicated plugin, providing features like interactive diff viewing, selection context sharing, and more.
##
@@ -21,11 +27,11 @@
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** : Code changes can be displayed directly in the IDE diff viewer instead of the terminal
- * **Selection context** : The current selection/tab in the IDE is automatically shared with Claude Code
- * **File reference shortcuts** : Use `Cmd+Option+K` (Mac) or `Alt+Ctrl+K` (Linux/Windows) to insert file references (for example, @File#L1-99)
- * **Diagnostic sharing** : Diagnostic errors (lint, syntax, etc.) from the IDE are automatically shared with Claude as you work
+ * **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** : code changes can be displayed directly in the IDE diff viewer instead of the terminal
+ * **Selection context** : the current selection or tab in the IDE is automatically shared with Claude Code
+ * **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** : diagnostic errors from the IDE, such as lint and syntax errors, are automatically shared with Claude as you work
##
@@ -37,9 +43,9 @@
-Marketplace Installation
-
-Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see [our quickstart guide](</docs/en/quickstart>) for installation instructions.
+Marketplace installation
+
+Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see the [quickstart guide](</docs/en/quickstart>) for installation instructions.
After installing the plugin, you may need to restart your IDE completely for it to take effect.
@@ -53,7 +59,7 @@
-From Your IDE
+From your IDE
Run `claude` from your IDE’s integrated terminal, and all integration features will be active.
@@ -61,7 +67,7 @@
-From External Terminals
+From external terminals
Use the `/ide` command in any external terminal to connect Claude Code to your JetBrains IDE and activate all features:
@@ -81,7 +87,7 @@
-Claude Code Settings
+Claude Code settings
Configure IDE integration through Claude Code’s settings:
@@ -93,7 +99,7 @@
-Plugin Settings
+Plugin settings
Configure the Claude Code plugin by going to **Settings → Tools → Claude Code [Beta]** :
@@ -101,12 +107,12 @@
-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** (macOS only): When enabled, Option+Enter inserts new lines in Claude Code prompts. Disable if experiencing issues with the Option key being captured unexpectedly (requires terminal restart)
- * **Enable automatic updates** : Automatically check for and install plugin updates (applied on restart)
+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)
@@ -114,7 +120,7 @@
-ESC Key Configuration
+ESC key configuration
If the ESC key doesn’t interrupt Claude Code operations in JetBrains terminals:
@@ -130,13 +136,13 @@
-Special Configurations
-
-###
-
-
-
-Remote Development
+Special configurations
+
+###
+
+
+
+Remote development
When using JetBrains Remote Development, you must install the plugin in the remote host via **Settings → Plugin (Host)**.
@@ -146,15 +152,54 @@
-WSL Configuration
-
-WSL users may need additional configuration for IDE detection to work properly. See our [WSL troubleshooting guide](</docs/en/troubleshooting#jetbrains-ide-not-detected-on-wsl2>) for detailed setup instructions.
-
-WSL configuration may require:
-
- * Proper terminal configuration
- * Networking mode adjustments
- * Firewall settings updates
+WSL configuration
+
+If you’re using Claude Code on WSL2 with a JetBrains IDE and see “No available IDEs detected”, the cause is usually WSL2’s NAT networking or Windows Firewall blocking the connection between WSL2 and the IDE running on the Windows host. WSL1 uses the host’s network directly and isn’t affected.
+
+####
+
+
+
+Allow WSL2 traffic through Windows Firewall
+
+This is the recommended fix because it keeps your existing WSL2 networking mode.
+
+1
+
+Find your WSL2 IP address
+
+From inside your WSL shell, run:
+
+ hostname -I
+
+Note the subnet, for example `172.21.123.45` is in `172.21.0.0/16`.
+
+2
+
+Create a firewall rule
+
+Open PowerShell as Administrator and run the following, adjusting the IP range to match your subnet:
+
+ 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
+
+3
+
+Restart your IDE and Claude Code
+
+Close and reopen both so the new rule takes effect.
+
+####
+
+
+
+Switch WSL2 to mirrored networking
+
+Mirrored networking requires Windows 11 22H2 or later. If you’re on Windows 10, use the firewall rule above instead. Add this to `.wslconfig` in your Windows user directory:
+
+ [wsl2]
+ networkingMode=mirrored
+
+Then restart WSL with `wsl --shutdown` from PowerShell.
##
@@ -166,7 +211,9 @@
-Plugin Not Working
+Plugin not working
+
+If the plugin is installed but Claude Code features don’t appear in your IDE:
* Ensure you’re running Claude Code from the project root directory
* Check that the JetBrains plugin is enabled in the IDE settings
@@ -177,22 +224,24 @@
-IDE Not Detected
+IDE not detected
+
+If running `claude` shows “No available IDEs detected”:
* Verify the plugin is installed and enabled
* Restart the IDE completely
* Check that you’re running Claude Code from the integrated terminal
- * For WSL users, see the [WSL troubleshooting guide](</docs/en/troubleshooting#jetbrains-ide-not-detected-on-wsl2>)
-
-###
-
-
-
-Command Not Found
+ * For WSL users, see WSL configuration above
+
+###
+
+
+
+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`
+ 1. Verify Claude Code is installed by running `claude --version` in a terminal
2. Configure the Claude command path in plugin settings
3. For WSL users, use the WSL command format mentioned in the configuration section
@@ -200,7 +249,7 @@
-Security Considerations
+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:
@@ -208,4 +257,4 @@
* Taking extra care to ensure Claude is only used with trusted prompts
* Being aware of which files Claude Code has access to modify
-For additional help, see our [troubleshooting guide](</docs/en/troubleshooting>).
+For Claude Code installation or login problems outside the IDE, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>).
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -87,7 +87,7 @@
1. Run `claude`
2. Enter the `/config` command
- 3. Set the diff tool to `auto` for automatic IDE detection
+ 3. Set the diff tool to `auto` to show diffs in the IDE, or `terminal` to keep them in the terminal
###
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -103,7 +103,7 @@
General Settings
- * **Claude command** : Specify a custom command to run Claude (for example, `claude`, `/usr/local/bin/claude`, or `npx @anthropic/claude`)
+ * **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** (macOS only): When enabled, Option+Enter inserts new lines in Claude Code prompts. Disable if experiencing issues with the Option key being captured unexpectedly (requires terminal restart)
* **Enable automatic updates** : Automatically check for and install plugin updates (applied on restart)
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -65,19 +65,7 @@
Use the `/ide` command in any external terminal to connect Claude Code to your JetBrains IDE and activate all features:
-Report incorrect code
-
-Copy
-
-Ask AI
-
claude
-
-Report incorrect code
-
-Copy
-
-Ask AI
/ide
Show diff (226 lines)
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -0,0 +1,223 @@
+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** : Code changes can be displayed directly in the IDE diff viewer instead of the terminal
+ * **Selection context** : The current selection/tab in the IDE is automatically shared with Claude Code
+ * **File reference shortcuts** : Use `Cmd+Option+K` (Mac) or `Alt+Ctrl+K` (Linux/Windows) to insert file references (for example, @File#L1-99)
+ * **Diagnostic sharing** : Diagnostic errors (lint, syntax, etc.) from the IDE are automatically shared with Claude as you work
+
+##
+
+
+
+Installation
+
+###
+
+
+
+Marketplace Installation
+
+Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see [our quickstart guide](</docs/en/quickstart>) 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:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ claude
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ /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` for automatic IDE detection
+
+###
+
+
+
+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/claude`)
+ * **Suppress notification for Claude command not found** : Skip notifications about not finding the Claude command
+ * **Enable using Option+Enter for multi-line prompts** (macOS only): When enabled, Option+Enter inserts new lines in Claude Code prompts. Disable if experiencing issues with the Option key being captured unexpectedly (requires 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 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](</docs/en/troubleshooting#jetbrains-ide-not-detected-on-wsl2>) for detailed setup instructions.
+
+WSL configuration may require:
+
+ * Proper terminal configuration
+ * Networking mode adjustments
+ * Firewall settings updates
+
+##
+
+
+
+Troubleshooting
+
+###
+
+
+
+Plugin Not Working
+
+ * Ensure you’re running Claude Code from the project root directory
+ * Check that the JetBrains plugin is enabled in the IDE settings
+ * Completely restart the IDE (you may need to do this multiple times)
+ * For Remote Development, ensure the plugin is installed in the remote host
+
+###
+
+
+
+IDE Not Detected
+
+ * Verify the plugin is installed and enabled
+ * Restart the IDE completely
+ * Check that you’re running Claude Code from the integrated terminal
+ * For WSL users, see the [WSL troubleshooting guide](</docs/en/troubleshooting#jetbrains-ide-not-detected-on-wsl2>)
+
+###
+
+
+
+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:
+
+ * Using manual approval mode for edits
+ * Taking extra care to ensure Claude is only used with trusted prompts
+ * Being aware of which files Claude Code has access to modify
+
+For additional help, see our [troubleshooting guide](</docs/en/troubleshooting>).