gittech. site

for different kinds of informations and explorations.

Switch2Cursor โ€“ Smoothly Switch Between JetBrains IDEs and Cursor

Published at
4 days ago

Switch2Cursor

ไธญๆ–‡ๆ–‡ๆกฃ

๐Ÿ’ก Recommended to use with Switch2IDEA in Cursor

JetBrains Plugins Downloads License

๐Ÿ” Introduction

A JetBrains IDE plugin that enhances development efficiency by enabling seamless switching between JetBrains IDE and Cursor

Switch2Cursor Demo

๐ŸŒŸ 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 Cursor
      • Option+Shift+O - Open current file in Cursor
    • Windows:
      • Alt+Shift+P - Open project in Cursor
      • Alt+Shift+O - Open current file in Cursor
  • ๐Ÿ”ง Multiple Access Methods

    • Keyboard shortcuts
    • Editor context menu
    • IDE tools menu

๐Ÿ› ๏ธ Installation Guide

Method 1: Install via JetBrains Marketplace

  1. Open IDE โ†’ Settings โ†’ Plugins โ†’ Marketplace
  2. Search for switch2cursor
  3. Click Install to complete installation
  4. Click OK to apply changes

Method 2: Local Installation

  1. Download the latest plugin package from JetBrains Marketplace
  2. IDE โ†’ Settings โ†’ Plugins โ†’ โš™๏ธโ†’ Install Plugin from Disk...
  3. Select the downloaded plugin package
  4. Click OK to apply changes

๐Ÿš€ Usage Guide

Basic Usage

Open Project

  • Shortcuts:
    • macOS: Option+Shift+P
    • Windows: Alt+Shift+P
  • 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
  • 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

  1. Fork this repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. 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: