Note: This project is modified from Switch2Cursor, expanding from Cursor-only support to comprehensive AI agent collaboration including Cursor, Qoder, Claude code, and more.
π‘ Recommended to use with Switch2IDEA in Cursor
switch2ai - A JetBrains IDE plugin enabling seamless collaboration between JetBrains IDEs and various AI agents (Cursor, Qoder, Claude code etc.). Key features include instant switching between different AI editors, rapid AI prompt input with AI selection, and fully configurable custom commands with variable support for enhanced AI collaboration workflow.
-
π Instant AI Editor Switching
- One-click switch between JetBrains IDE and various AI editors (Cursor, Qoder, Claude code, etc.)
- Automatically positions to the same cursor location (line and column)
- Perfectly maintains editing context without interrupting workflow
-
π€ Rapid AI Prompt Input
- Quick AI prompt input with AI selection dropdown
- Support for multiple AI agents (Cursor, Qoder, Claude code, etc.)
- Intelligent context-aware prompt processing
- Support for shortcut commands like
$test,$refactor,$explain
-
β¨οΈ Convenient Shortcut Support
- macOS:
Option+Shift+K- Open AI prompt input popupOption+Shift+P- Open project in Cursor EditorOption+Shift+O- Open current file in Cursor EditorOption+Shift+U- Open current file in QoderOption+Shift+I- Open project in Qoder
- Windows:
Alt+Shift+K- Open AI prompt input popupOption+Shift+P- Open project in Cursor EditorOption+Shift+O- Open current file in Cursor EditorAlt+Shift+U- Open current file in QoderAlt+Shift+I- Open project in Qoder
- macOS:
-
π§ Multiple Access Methods
- Keyboard shortcuts
- Editor context menu
- IDE tools menu
-
β‘ Fully Configurable Custom Commands
- Execute custom commands with comprehensive variable support
- Variables:
$filePath,$projectPath,$line,$column,$selectedText,$prompt - Support for shortcut commands like
$test,$refactor,$explain - Completely customizable command templates
- Dynamic command registration and management
- Download: switch2ai-0.1.2.zip
- Direct Download: switch2ai-0.1.2.zip
- Version: 0.1.2
- Release Date: Latest
- Compatibility: JetBrains IDEs 2022.3+
- Download the latest plugin package from the Releases page
- Open your JetBrains IDE
- Go to
Settings(Windows/Linux) orPreferences(macOS) - Navigate to
PluginsββοΈβInstall Plugin from Disk... - Select the downloaded
.zipfile - Click
OKto apply changes - Restart your IDE when prompted
# Clone repository
git clone https://github.com/sinberCS/switch2ai.git
# Build plugin
cd switch2ai
./gradlew buildPlugin
# Plugin package will be generated in build/distributions/ directory
# Install the generated .zip file using Method 1- Plugin will be available on the official JetBrains Marketplace
- One-click installation directly from IDE
- Automatic updates
- Shortcuts:
- macOS:
Option+Shift+K - Windows:
Alt+Shift+K
- macOS:
- Context Menu: Right-click in editor β
AI Prompt Input - Tools Menu:
ToolsβAI Prompt Input - Features:
- Select AI agent from dropdown (Cursor, Qoder, Claude code, etc.)
- Input prompts with intelligent context awareness
- Support for shortcut commands like
$test,$refactor,$explain - Popup appears at cursor position for quick access
- Shortcuts:
- macOS:
Option+Shift+P - Windows:
Alt+Shift+P
- macOS:
- Context Menu: Right-click in project view β
Open Project In AI Editor - Tools Menu:
ToolsβOpen Project In AI Editor
- Shortcuts:
- macOS:
Option+Shift+O - Windows:
Alt+Shift+O
- macOS:
- Context Menu: Right-click in editor β
Open File In AI Editor - Tools Menu:
ToolsβOpen File In AI Editor
- Shortcuts:
- macOS:
Option+Shift+U(file),Option+Shift+I(project) - Windows:
Alt+Shift+U(file),Alt+Shift+I(project)
- macOS:
- Context Menu: Right-click in editor β
Open In Qoder - Tools Menu:
ToolsβOpen In Qoder
- In
Settings/PreferencesβToolsβswitch2ai:- AI Configuration Tab: Configure AI agents (Cursor, Qoder, Claude code, etc.)
- Set AI agent names, display names, command templates, and descriptions
- Configure command templates with variable support
- Custom Commands Tab: Configure custom commands with comprehensive variable support
- Set command IDs, shortcuts, command templates, and descriptions
- Support for variables:
$filePath,$projectPath,$line,$column,$selectedText - Check Shortcut Conflicts: Detect and resolve keyboard shortcut conflicts
- Shortcut Commands Tab: Set up shortcut commands like
$test,$refactor,$explain- Define short commands that expand to full prompts
- Example:
$testexpands to "Please write unit tests for this function..."
- Customize shortcuts through Keymap settings
- AI Configuration Tab: Configure AI agents (Cursor, Qoder, Claude code, etc.)
- Automatic Detection: The plugin automatically detects shortcut conflicts during registration
- User Choice Dialog: Shows a dialog asking whether to replace conflicting shortcuts
- Conflict Removal: If user chooses to replace, conflicting shortcuts are removed first
- Manual Check: Use "Check Shortcut Conflicts" button in settings to scan for conflicts
- Resolution: Conflicts can be resolved in
SettingsβKeymapby reassigning shortcuts
The plugin comes with pre-configured:
- AI Agents: Claude Code, iflow
- Shortcut Commands:
$test,$refactor,$explain,$optimize,$debug,$doc - Custom Commands: Jump to Cursor/Qoder with file and project support
- Any AI editor installed (Cursor, Qoder, Claude code, etc.)
- Compatible with all JetBrains IDEs (version 2022.3 and above)
- Terminal plugin enabled for integrated terminal execution
src/main/kotlin/com/github/switch2ai/
βββ actions/
β βββ processor/ # Command execution logic
β βββ registry/ # Dynamic action registration
βββ config/
β βββ model/ # Configuration data models
β βββ settings/ # Settings UI and state management
βββ core/
β βββ startup/ # Project startup initialization
βββ ui/
β βββ dialog/ # User interface components
βββ utils/ # Utility classes
# Clone repository
git clone https://github.com/sinberCS/switch2ai.git
# Build plugin
cd switch2ai
./gradlew buildPlugin
# Plugin package will be generated in build/distributions/ directory- DynamicActionRegistry: Manages dynamic registration of custom commands and actions
- CommandProcessor: Handles command execution and AI prompt processing
- AppSettingsConfigurable: Provides comprehensive configuration interface
- PromptInputPopup: Quick prompt input popup at cursor position
- ShortcutCommandReplacer: Processes shortcut command expansions
- Fork this repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Submit a Pull Request
Supports all JetBrains IDEs, including: IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover, Android Studio, etc.
The plugin is developed based on JDK 17 and currently only supports JetBrains IDE version 2022.3 and above
Modify in Settings β Keymap β Plugins β switch2ai
Go to Settings β Tools β switch2ai and configure custom commands with variable support
Shortcut commands like $test automatically expand to full prompts when you type them in the AI prompt input
Yes, you can add custom AI agents in the AI Configuration tab with custom command templates and variable support
The plugin automatically captures the current file path, line, and column, then passes this information to AI editors for precise positioning