GitHub - qczone/switch2cursor: A JetBrains IDE plugin that enables smooth switching between JetBrains IDE and Cursor, with automatic cursor position sync. Features keyboard shortcuts, context menu integration, and tools menu access. Supports all JetBrains IDEs.
Extracto
A JetBrains IDE plugin that enables smooth switching between JetBrains IDE and Cursor, with automatic cursor position sync. Features keyboard shortcuts, context menu integration, and tools menu acc...
Contenido
Switch2Cursor
💡 Recommended to use with Switch2IDEA in Cursor
🔍 Introduction
A JetBrains IDE plugin that enhances development efficiency by enabling seamless switching between JetBrains IDE and Cursor
🌟 Features
-
🚀 Seamless Editor Switching
- One-click switch between JetBrains IDE and Cursor
- Automatically positions to the same cursor location (line and column)
- Perfectly maintains editing context without interrupting workflow
-
⌨️ Convenient Shortcut Support
- macOS:
Option+Shift+P- Open project in CursorOption+Shift+O- Open current file in Cursor
- Windows:
Alt+Shift+P- Open project in CursorAlt+Shift+O- Open current file in Cursor
- macOS:
-
🔧 Multiple Access Methods
- Keyboard shortcuts
- Editor context menu
- IDE tools menu
🛠️ Installation Guide
Method 1: Install via JetBrains Marketplace
- Open IDE →
Settings→Plugins→Marketplace - Search for switch2cursor
- Click
Installto complete installation - Click
OKto apply changes
Method 2: Local Installation
- Download the latest plugin package from JetBrains Marketplace
- IDE →
Settings→Plugins→⚙️→Install Plugin from Disk... - Select the downloaded plugin package
- Click
OKto apply changes
🚀 Usage Guide
Basic Usage
Open Project
- Shortcuts:
- macOS:
Option+Shift+P - Windows:
Alt+Shift+P
- macOS:
- Context Menu: Right-click in project view →
Open Project In Cursor - Tools Menu:
Tools→Open Project In Cursor
Open Current File
- Shortcuts:
- macOS:
Option+Shift+O - Windows:
Alt+Shift+O
- macOS:
- Context Menu: Right-click in editor →
Open File In Cursor - Tools Menu:
Tools→Open File In Cursor
Configuration
- In
Settings/Preferences→Tools→Switch2Cursor:- Set Cursor executable path (default is "cursor")
- Customize shortcuts through Keymap settings
Requirements
- Cursor installed
- Compatible with all JetBrains IDEs (version 2022.3 and above)
🧑💻 Developer Guide
Build Project
# Clone repository git clone https://github.com/qczone/switch2cursor.git # Build plugin cd switch2cursor ./gradlew buildPlugin # Plugin package will be generated in build/distributions/ directory
Contributing
- Fork this repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Submit a Pull Request
🙋 FAQ
1. Why doesn't the shortcut/menu click switch to Cursor after installation?
Check if the correct Cursor executable path is configured in Settings → Tools → Switch2Cursor
2. Which IDEs are supported?
Supports all JetBrains IDEs, including: IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover, Android Studio, etc.
3. Which versions are supported?
The plugin is developed based on JDK 17 and currently only supports JetBrains IDE version 2022.3 and above
4. How to modify plugin shortcuts?
Modify in Settings → Keymap → Plugins → Switch2Cursor
📄 License
This project is licensed under the MIT License
📮 Feedback
If you encounter any issues or have suggestions, please provide feedback through:
Fuente: GitHub
