Maximize your productivity by integrating Claude Code with your IDE. This guide covers installation, configuration, keyboard shortcuts, and advanced features for VS Code, JetBrains IDEs, and terminal environments.
IDE Compatibility
Claude Code provides dedicated integrations for:
VS Code (including Cursor, Windsurf, VSCodium)
JetBrains IDEs (IntelliJ, PyCharm, WebStorm, PhpStorm, GoLand, Android Studio)
Any Terminal (iTerm2, Terminal.app, Windows Terminal, etc.)
Even without specific integration, Claude Code works in any environment with a terminal.
Install Claude Code CLI (if not already done)
npm install -g @anthropic-ai/claude-code
Start Claude Code from your IDE’s terminal
Extension auto-installs (VS Code) or Install plugin (JetBrains)
Test integration
Use keyboard shortcuts
Try diff viewing
Check diagnostic sharing
Simply run claude
from VS Code’s integrated terminal - the extension installs automatically.
If auto-install fails:
Ensure the code
CLI is available:
Press Cmd+Shift+P
(Mac) or Ctrl+Shift+P
(Windows/Linux)
Search for “Shell Command: Install ‘code’ command in PATH”
For VS Code forks:
Cursor: Ensure cursor
command is available
Windsurf: Ensure windsurf
command is available
VSCodium: Ensure codium
command is available
VS Code Integration Features
Feature Shortcut Description Quick Launch Cmd+Esc
(Mac)Ctrl+Esc
(Win/Linux)Open Claude Code from editor Diff Viewing Automatic View changes in VS Code’s diff editor File Reference Cmd+Option+K
(Mac)Alt+Ctrl+K
(Win/Linux)Insert file references (@File#L1-99) Selection Context Automatic Current selection shared with Claude Diagnostic Sharing Automatic Linter errors sent to Claude Multiple Instances Manual Run parallel Claude sessions in split panes
"claude-code.diffTool" : " auto " ,
"claude-code.autoLaunch" : true ,
"claude-code.diagnosticSharing" : true ,
"claude-code.selectionContext" : true ,
"terminal.integrated.defaultProfile.osx" : " zsh " ,
"terminal.integrated.fontSize" : 14
Run multiple Claude instances for different parts of your codebase:
Split terminal panes
Right-click terminal tab → “Split Terminal”
Or use Cmd+\
(Mac) / Ctrl+\
(Windows/Linux)
Navigate to different directories
Work in parallel
Each instance maintains separate context
Ideal for frontend/backend separation
Open JetBrains IDE (IntelliJ, PyCharm, etc.)
Go to Settings → Plugins → Marketplace
Search for “Claude Code”
Install and restart IDE completely
Run claude
in the integrated terminal - the plugin may auto-install.
Note : Restart the IDE completely for it to take effect.
For JetBrains Remote Development:
Install plugin on the remote host via Settings → Plugin (Host)
Not on the local client
JetBrains Integration Features
Quick Launch : Same keyboard shortcuts as VS Code
Integrated Diff Viewer : View changes in JetBrains diff tool
Project Context : Automatic project structure awareness
Run Configurations : Access to project run configs
Database Integration : Works with DataGrip features
Ensure Claude Code is run from project root
Check plugin is enabled in Settings
Completely restart IDE (may need multiple restarts)
For Remote Dev, verify plugin is on remote host
If ESC doesn’t interrupt Claude:
Go to Settings → Tools → Terminal
Click “Configure terminal keybindings”
Find “Switch focus to Editor”
Delete that shortcut
This prevents IDE from capturing ESC key.
Run terminal setup
This configures Shift+Enter for multiline input
Manual configuration for different terminals
Preferences → Keys → Key Bindings
Add: Shift+Enter → Send Text: \x1b[13;2u
Preferences → Profiles → Keyboard
Add: Shift+Return → \033[13;2u
Auto-configured by /terminal-setup
Entering Multiline Text
Method Shortcut Works In Quick Escape \
+ Enter
All terminals Shift+Enter Shift
+ Enter
After setup Option+Enter Option
+ Enter
macOS default Paste Mode Direct paste For code blocks Vim Mode /vim
then o
/O
With Vim enabled
Recommended Settings :
Enable “Unlimited scrollback”
Set up system notifications
Configure semantic history
Use profiles for different projects
Notifications :
# Enable iTerm2 notifications
claude config set preferredNotifChannel iterm2_with_bell
WSL Integration :
Use WSL 2 for best performance
Configure default profile to WSL
Set up proper color scheme
Enable Unicode support
Session Management :
Create dedicated Claude windows
Use pane splitting for multiple instances
Configure proper escape sequences
Preserve sessions across disconnects
Use /ide
command to connect Claude Code running in external terminal to your IDE:
Open IDE with your project
In external terminal
Claude detects and connects to IDE
Enables diff viewing
Shares diagnostics
Syncs file context
Configure your preferred diff viewer:
"diffTool" : " auto " , // Auto-detect IDE
// Or specify explicitly:
// "diffTool": "intellij"
Enable Vim keybindings within Claude:
Enable Vim mode
Or configure permanently:
claude config set vimMode true
Supported commands
Mode switching: Esc
, i
, a
, o
Navigation: h/j/k/l
, w/e/b
, 0/$
Editing: x
, dd
, cc
, .
(repeat)
And more standard Vim commands
Effective Workflows
1. Quick Fix Pattern
See error in IDE
Cmd+Esc
to launch Claude
“Fix the TypeScript error in UserService.ts”
Review diff in IDE
Accept or modify
2. Feature Development
Write tests in IDE
Launch Claude: “Implement the UserProfile component to pass these tests”
Watch live implementation
Debug in IDE
3. Code Review Prep
Select code block
Launch Claude: “Review this code for security issues”
Get instant feedback
Fix issues before PR
Symptoms : Shortcuts don’t work, no Claude button
Solutions :
Verify Claude Code is installed: claude --version
Check IDE CLI tool: which code
(or cursor
, etc.)
Manually trigger install from terminal
Check extension logs in IDE
Symptoms : Changes appear in terminal, not IDE
Solutions :
Run /config
and set diff tool to “auto”
Ensure you started Claude from IDE terminal
Try /ide
command to reconnect
Check file permissions
Symptoms : Lag when launching or switching
Solutions :
Close other Claude instances
Increase terminal buffer size
Exclude large directories in .gitignore
Use /compact
to reduce context
Use native Terminal.app or iTerm2 for best experience
Configure keyboard shortcuts in System Preferences if needed
Enable accessibility permissions for keyboard shortcuts
Prefer WSL 2 over native Windows
Use Windows Terminal for modern experience
Configure Git Bash path if using native mode
Works with all major terminals
May need to configure keybindings manually
Check shell compatibility (bash/zsh/fish)
Action VS Code JetBrains Terminal Launch Claude Cmd+Esc
Cmd+Esc
claude
Stop Claude Esc
Esc
Esc
File Reference Cmd+Opt+K
Cmd+Opt+K
Type @file
Multiline Auto Auto \
+EnterClear Screen N/A N/A Ctrl+L
Exit N/A N/A Ctrl+D
Remember: The IDE integration is designed to be invisible when it’s working correctly - you get all the benefits without thinking about it.