Switch2Idea

A VSCode extension that enables quick switching between VSCode and JetBrains IDEs (IntelliJ IDEA, WebStorm, Android Studio).

✨ Features
- 🚀 Quick switching between VSCode and JetBrains IDEs
- 📂 Open current file in JetBrains IDE with the same position
- 📁 Open current project in JetBrains IDE
- 🛠️ Support for multiple JetBrains IDEs:
- IntelliJ IDEA
- WebStorm
- Android Studio
- ⌨️ Keyboard shortcuts support
- 📝 Context menu integration
- 🌐 Cross-platform support (Windows, macOS, Linux)
📦 Installation
- Open VSCode
- Press
Ctrl+Shift+X
(Windows/Linux) or Cmd+Shift+X
(macOS) to open the Extensions view
- Search for "Switch2Idea"
- Click Install
Alternatively, you can install from the Visual Studio Marketplace
⚙️ Configuration
Before using the extension, you need to configure the paths to your JetBrains IDEs:
- Open VSCode Settings (
Ctrl+,
or Cmd+,
)
- Search for "Switch2Idea"
- Configure the following paths:
switch2idea.webStormPath
: Path to WebStorm executable
switch2idea.androidStudioPath
: Path to Android Studio executable
Default Paths
WebStorm:
- Windows:
C:\Program Files\JetBrains\WebStorm\bin\webstorm64.exe
- macOS:
/Applications/WebStorm.app/Contents/MacOS/webstorm
- Linux:
/usr/local/bin/webstorm
Android Studio:
- Windows:
C:\Program Files\Android\Android Studio\bin\studio64.exe
- macOS:
/Applications/Android Studio.app/Contents/MacOS/studio
- Linux:
/usr/local/android-studio/bin/studio.sh
🚀 Usage
Opening Files
- Open the file you want to switch in VSCode
- Use one of the following methods to open the file in a JetBrains IDE:
- Keyboard shortcuts:
- WebStorm:
Alt+Shift+O w
- Android Studio:
Alt+Shift+O a
- Xcode:
Alt+Shift+O x
- Right-click the file and select "Open File in [IDE]"
- Use the Command Palette (
Ctrl+Shift+P
) and type "Open File in [IDE]"
Opening Projects
- Open the project you want to switch in VSCode
- Use one of the following methods to open the project in a JetBrains IDE:
- Keyboard shortcuts:
- WebStorm:
Alt+Shift+P w
- Android Studio:
Alt+Shift+P a
- Xcode:
Alt+Shift+P x
- Right-click the project in the Explorer and select "Open Project in [IDE]"
- Use the Command Palette (
Ctrl+Shift+P
) and type "Open Project in [IDE]"
⌨️ Keyboard Shortcuts
- WebStorm:
- Open File:
Alt+Shift+O w
- Open Project:
Alt+Shift+P w
- Android Studio:
- Open File:
Alt+Shift+O a
- Open Project:
Alt+Shift+P a
- Xcode:
- Open File:
Alt+Shift+O x
- Open Project:
Alt+Shift+P x
🤝 Contributing
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
)
- Commit your changes (
git commit -m 'Add some amazing feature'
)
- Push to the branch (
git push origin feature/amazing-feature
)
- Open a Pull Request
❓ FAQ
A: Please check:
- The IDE path is correctly configured in VSCode settings
- The IDE is properly installed
- You have sufficient permissions to run the IDE
Q: Can I use different IDEs for different projects?
A: Yes! You can configure IDE paths per workspace:
- Open VSCode settings
- Switch to the Workspace tab
- Configure the IDE paths for your current workspace
Q: Does it support other JetBrains IDEs?
A: Currently, the extension officially supports IntelliJ IDEA, WebStorm, and Android Studio. Support for other JetBrains IDEs may be added in future versions.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
📮 Feedback
If you encounter any issues or have suggestions, please:
中文文档