JetBrains IDE
Use Claude Code in IntelliJ IDEA, WebStorm, PyCharm, and other JetBrains IDEs
JetBrains IDE Integration¶
Claude Code offers an official JetBrains plugin that supports IntelliJ IDEA, WebStorm, PyCharm, GoLand, and all other JetBrains IDEs.
Prerequisites¶
-
Claude Code CLI is installed and working
-
Follow the Installation Guide to complete installation
-
Follow the Environment Variables guide to configure QCode.cc API
-
JetBrains IDE 2024.1 or later
Installation Steps¶
Step 1: Install the Claude Code Plugin¶
-
Open your JetBrains IDE
-
Go to Settings β Plugins β Marketplace
-
Search for "Claude Code" (publisher: Anthropic)
-
Click Install
-
Restart the IDE
Step 2: Configure Environment Variables¶
Ensure the following environment variables are set (same as the CLI):
export ANTHROPIC_BASE_URL="https://asia.qcode.cc/api"
export ANTHROPIC_AUTH_TOKEN="cr_your_api_key"
Tip: JetBrains IDEs inherit system environment variables. If you've already configured them in
~/.zshrcor~/.bashrc, the IDE will pick them up automatically on launch.
Step 3: Verify¶
-
In the IDE, press
Cmd+Esc(macOS) orCtrl+Esc(Windows/Linux) to open the Claude Code panel -
Type a simple message to test the connection
Usage¶
Keyboard Shortcuts¶
| Shortcut | Function |
|---|---|
Cmd+Esc / Ctrl+Esc |
Open/close the Claude Code panel |
Key Features¶
-
Code explanation: Select code β Right-click β Ask Claude
-
Code generation: Describe your requirements in the Claude panel
-
Error fixing: Send error messages to Claude for analysis
-
Code refactoring: Select code and let Claude help optimize it
Using with Terminal CLI¶
The built-in Terminal in JetBrains IDEs can also run the claude command directly, providing the full CLI experience.
FAQ¶
Claude Code panel not showing?¶
-
Confirm the plugin is installed and enabled
-
Confirm Claude Code CLI is globally installed (
claude --version) -
Restart the IDE
Environment variables not taking effect?¶
JetBrains IDEs may not pick up environment variables from your shell configuration files. Solutions:
-
macOS: Launch the IDE from the terminal (
open -a "IntelliJ IDEA") instead of clicking the Dock icon -
All platforms: Manually add the variables in Run/Debug Configurations β Environment variables
Next Steps¶
-
See VS Code Integration for the VS Code extension
-
See Cline Integration for another VS Code AI extension
-
See CLI Tips for terminal usage tips