IntelliJ IDEA / JetBrains IDEs
MyDeskBot for JetBrains IDEs provides intelligent AI assistance for IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, and other JetBrains products.
Supported IDEs
MyDeskBot is available for all JetBrains IDEs:
- IntelliJ IDEA (Ultimate & Community)
- PyCharm (Professional & Community)
- WebStorm
- PhpStorm
- RubyMine
- GoLand
- CLion
- DataGrip
- AppCode
- Rider
Installation
Method 1: From JetBrains Marketplace
- Open your JetBrains IDE
- Go to File → Settings (Windows/Linux) or Preferences (macOS)
- Navigate to Plugins
- Click the Marketplace tab
- Search for "MyDeskBot"
- Click Install
- Restart the IDE
Method 2: From Disk
- Download the MyDeskBot plugin
.zipfile - Go to Settings/Preferences → Plugins
- Click the ⚙️ icon → Install Plugin from Disk...
- Select the downloaded
.zipfile - Restart the IDE
Configuration
API Key Setup
- Go to Settings → Tools → MyDeskBot
- Click Configure API Key
- Enter your API key:
- OpenAI API key
- Anthropic API key
- Select your preferred model
- Click OK
Advanced Settings
Settings → Tools → MyDeskBot:
- Model Selection: Choose your AI model
- Temperature: Control creativity (0.0 - 2.0)
- Max Tokens: Maximum response length
- Stream Responses: Show responses as they're generated
- Timeout: Maximum wait time for responses
Editor Settings:
- Inline Suggestions: Enable/disable inline code completions
- Automatic Documentation: Auto-generate comments
- Context Window: Number of files to consider for context
Features
1. Code Completion
Get intelligent code suggestions as you type:
java
// Start typing
List<String> users = new Ar
// MyDeskBot suggests
List<String> users = new ArrayList<>();Settings:
- Enable/Disable: Settings → Editor → General → Code Completion → MyDeskBot
- Trigger mode: Manual or Automatic
2. Inline Chat
Ask questions without leaving your code:
- Press
Ctrl+Shift+M(orCmd+Shift+Mon macOS) - Type your question
- Get inline responses
Example:
java
// MyDeskBot: How do I sort this list?
[AI response inline]
users.sort(Comparator.comparing(User::getName));3. Code Actions
Right-click on selected code to see AI-powered actions:
- Explain Code: Get a detailed explanation
- Refactor: Improve code quality
- Add Comments: Generate documentation
- Find Bugs: Identify potential issues
- Optimize: Improve performance
- Generate Tests: Create unit tests
4. Panel Chat
Open the dedicated MyDeskBot panel:
- Go to View → Tool Windows → MyDeskBot
- Or press
Alt+M(Windows/Linux) orCmd+M(macOS) - Ask questions in the chat interface
5. Context-Aware Assistance
MyDeskBot understands your project context:
- Current file
- Open files
- Project structure
- Dependencies
- Build configuration
Keyboard Shortcuts
| Action | Windows/Linux | macOS |
|---|---|---|
| Open MyDeskBot Panel | Alt+M | Cmd+M |
| Inline Chat | Ctrl+Shift+M | Cmd+Shift+M |
| Explain Code | Ctrl+Shift+E | Cmd+Shift+E |
| Refactor Code | Ctrl+Shift+R | Cmd+Shift+R |
| Generate Tests | Ctrl+Shift+T | Cmd+Shift+T |
| Complete Code | Tab | Tab |
| Inline Suggestion | Ctrl+Space | Ctrl+Space |
Workflows
1. Code Review
- Select the code to review
- Right-click → Analyze Code
- MyDeskBot provides:
- Code quality issues
- Potential bugs
- Security vulnerabilities
- Performance suggestions
2. Refactoring
- Select code to refactor
- Right-click → Refactor with AI
- Choose refactoring type:
- Simplify logic
- Extract method
- Improve readability
- Optimize performance
3. Documentation Generation
- Select code or method
- Right-click → Generate Documentation
- MyDeskBot generates:
- JSDoc/Javadoc comments
- Parameter descriptions
- Return value documentation
- Usage examples
4. Test Generation
- Select a class or method
- Right-click → Generate Tests
- MyDeskBot creates:
- Unit test structure
- Test cases
- Mock objects
- Assertions
5. Debugging Assistance
- When debugging, select problematic code
- Right-click → Explain Issue
- MyDeskBot analyzes:
- Potential causes
- Stack traces
- Suggestions for fixes
Project Templates
MyDeskBot can help you create new projects:
- Go to File → New → Project from MyDeskBot
- Describe your project:
Create a REST API with Spring Boot, PostgreSQL, and JWT authentication - MyDeskBot generates:
- Project structure
- Dependencies
- Initial code
- Configuration files
AI-Powered Refactoring
Extract Method
- Select code block
- Right-click → Refactor → Extract Method with AI
- MyDeskBot suggests:
- Method name
- Parameters
- Return type
- Javadoc
Inline Variable
- Select variable
- Right-click → Refactor → Inline Variable with AI
- MyDeskBot replaces variable usage with its value
Change Signature
- Select method
- Right-click → Refactor → Change Signature with AI
- MyDeskBot suggests:
- New parameter names
- Better parameter ordering
- Default values
Troubleshooting
Plugin Not Showing in Marketplace
- Check IDE compatibility (requires version 2020.2+)
- Try searching manually in the JetBrains Plugin Repository
- Install from disk as a fallback
API Key Not Working
- Verify the API key is correct
- Check your account has credits
- Ensure the key has necessary permissions
- Try a different API provider
No Suggestions Appearing
- Check if inline suggestions are enabled
- Verify your model is configured
- Check the API status
- Try manually triggering with
Ctrl+Space
Slow Performance
- Reduce context window size
- Disable streaming responses
- Increase timeout setting
- Close unnecessary files
Best Practices
- Use Descriptive Names: Helps MyDeskBot understand your code
- Add Comments: Provide context for better suggestions
- Keep Functions Small: Easier for AI to analyze
- Review Suggestions: Always review AI-generated code
- Iterate: Refine requests for better results
Integration with Other JetBrains Features
Version Control
- Commit Messages: AI generates commit messages
- Code Review: AI assists in pull request reviews
- Merge Conflicts: AI helps resolve conflicts
Database Tools
- SQL Queries: AI generates and optimizes SQL
- Schema Design: AI suggests database schemas
- Query Optimization: AI improves query performance
Build Tools
- Maven/Gradle: AI generates build configurations
- Dependency Management: AI suggests dependencies
- Build Optimization: AI optimizes build scripts
Enterprise Features
For teams and organizations:
- Shared Configuration: Standardize AI settings across team
- Custom Models: Use enterprise AI endpoints
- Usage Analytics: Track AI usage patterns
- Rate Limiting: Control API costs
Privacy & Security
- Local Processing: Code never leaves your machine (when using local models)
- Encrypted Transmissions: All API calls use HTTPS
- No Code Storage: We don't store your code on our servers
- Compliance: GDPR, SOC2 compliant