IDE Plugins
Integrate Claude Code directly into your favorite code editor
title: IDE Plugins description: Integrate Claude Code directly into your favorite code editor
Claude Code offers native integration with popular IDEs, bringing AI-powered coding assistance directly into your development environment. This guide covers installation and configuration for each supported editor.
VS Code Extension
Installation
- Open VS Code
- Go to Extensions (Cmd/Ctrl + Shift + X)
- Search for "Claude Code"
- Click Install
Or install from the command line:
Setup
After installation:
- Open the Command Palette (Cmd/Ctrl + Shift + P)
- Type "Claude: Sign In"
- Follow the authentication prompts
Features
| Feature | Shortcut | Description | |---------|----------|-------------| | Inline Chat | Cmd/Ctrl + I | Chat with Claude about selected code | | Code Actions | Cmd/Ctrl + . | Quick fixes and refactoring suggestions | | Generate Code | Cmd/Ctrl + Shift + G | Generate code from natural language | | Explain Code | Cmd/Ctrl + Shift + E | Get explanations for selected code | | Find Bugs | Cmd/Ctrl + Shift + B | Analyze code for potential issues |
Configuration
Open settings (Cmd/Ctrl + ,) and search for "Claude":
Inline Chat
Select code and press Cmd/Ctrl + I to open inline chat:
Code Lens
Claude adds CodeLens hints above functions:
Click any hint to get Claude's assistance.
Panel View
Open the Claude panel for longer conversations:
- Click the Claude icon in the Activity Bar
- Or use Cmd/Ctrl + Shift + C
The panel supports:
- Multi-turn conversations
- File references (@file)
- Code generation with preview
- Conversation history
JetBrains Plugins
Supported IDEs
- IntelliJ IDEA
- WebStorm
- PyCharm
- PhpStorm
- GoLand
- RubyMine
- Rider
- CLion
- DataGrip
Installation
- Open Settings/Preferences (Cmd/Ctrl + ,)
- Go to Plugins → Marketplace
- Search for "Claude Code"
- Click Install and restart IDE
Or install from JetBrains Marketplace:
Setup
- Go to Settings → Tools → Claude Code
- Enter your API key or sign in
- Configure default model and preferences
Features
| Feature | Shortcut | Description | |---------|----------|-------------| | Ask Claude | Alt + C | Open Claude chat for selection | | Generate | Alt + G | Generate code from description | | Refactor | Alt + R | AI-powered refactoring | | Document | Alt + D | Generate documentation | | Test | Alt + T | Generate unit tests |
Tool Windows
Claude appears in two locations:
- Right Panel - Quick chat for selected code
- Bottom Panel - Full conversation interface
Intentions
Right-click on code to see Claude intentions:
- "Ask Claude about this"
- "Explain this code"
- "Generate tests for this"
- "Find potential bugs"
- "Suggest improvements"
Configuration
Neovim Integration
Installation
Using lazy.nvim:
Using packer.nvim:
Setup
Add your API key to your shell configuration:
Key Mappings
Default mappings (customizable):
Commands
| Command | Description |
|---------|-------------|
| :ClaudeChat | Open chat window |
| :ClaudeExplain | Explain selected code |
| :ClaudeRefactor | Refactor selected code |
| :ClaudeTest | Generate tests |
| :ClaudeGenerate | Generate code from prompt |
| :ClaudeFix | Fix errors in code |
Configuration
Telescope Integration
If you use Telescope:
Sublime Text
Installation
- Install Package Control if not present
- Open Command Palette (Cmd/Ctrl + Shift + P)
- Type "Package Control: Install Package"
- Search for "Claude" and install
Configuration
Create or edit Packages/User/Claude.sublime-settings:
Commands
Access via Command Palette or keyboard shortcuts:
Claude: Ask- Ask about selectionClaude: Explain- Explain codeClaude: Generate- Generate codeClaude: Refactor- Suggest improvements
Emacs
Installation
Using straight.el:
Using use-package:
Key Bindings
Common Configuration
Shared Settings
All IDE plugins support these common settings:
| Setting | Description | Default |
|---------|-------------|---------|
| model | Claude model to use | claude-sonnet-4-20250514 |
| maxTokens | Maximum response length | 4096 |
| temperature | Response randomness (0-1) | 0 |
| apiKey | Your Anthropic API key | - |
Context Settings
Control what context is sent to Claude:
- Current file - Include the active file
- Selection - Include selected text
- Open files - Include other open files
- Project structure - Include file tree
- Git context - Include recent changes
Privacy Settings
Some plugins offer privacy controls:
- Exclude specific files/patterns
- Disable telemetry
- Local processing options
Troubleshooting
Extension Not Loading
- Check VS Code/IDE version compatibility
- Restart the IDE
- Check extension logs for errors
- Reinstall the extension
Authentication Issues
- Verify API key is correct
- Check key hasn't expired
- Ensure network connectivity
- Try signing out and back in
Slow Responses
- Check network connection
- Try a different model (Haiku is faster)
- Reduce context settings
- Check rate limits
No Code Suggestions
- Verify auto-complete is enabled
- Check file type is supported
- Ensure cursor is in valid position
- Check extension settings
Best Practices
1. Use Specific Selections
Select specific code rather than entire files:
2. Provide Context in Prompts
Be specific about what you need:
3. Review Generated Code
Always review Claude's suggestions before accepting:
- Check for correctness
- Verify it matches your style guide
- Test the changes
4. Use Keyboard Shortcuts
Learn the shortcuts for your most common operations to stay in flow.