JetBrains Link - VS Code Extension
A simple VS Code extension that syncs open tabs to JetBrains IDEs with cursor positioning.
Features
- Sync open tabs: Transfer open files from VS Code to JetBrains IDE
- Cursor positioning: Sync current file cursor position (line and column)
- Status bar button: Quick access button for easy syncing
- Configurable path: Set custom JetBrains IDE executable path
- Custom arguments: Configure command-line arguments
Installation
1. Install dependencies
npm install
2. Compile
npm run compile
Set up the following in VS Code settings:
jetBrainsLink.executablePath
Path to your JetBrains IDE executable:
- macOS:
/usr/local/bin/goland (recommended: use "Create Command-line Launcher" in your IDE)
- Windows:
"C:\\Program Files\\JetBrains\\GoLand 2024.1\\bin\\goland64.exe"
- Linux:
"/opt/GoLand/bin/goland.sh"
jetBrainsLink.commandArguments
Command-line arguments template (default: --line {line} --column {column} {paths} )
Show status bar button (default: true )
Usage
- Open files in VS Code
- Position cursor where needed
- Click the "🔗 JetBrains" status bar button or use command palette
The extension will open the files in JetBrains IDE and position the cursor.
Development
Debug
- Open project folder
- Press
F5 to launch Extension Development Host
- Test the extension in the new window
Watch compilation
npm run watch
Supported IDEs
- IntelliJ IDEA
- GoLand
- PyCharm
- WebStorm
- PhpStorm
- RubyMine
- CLion
- Other JetBrains IDEs with command-line support
Troubleshooting
IDE won't start
- Check executable path setting
- Ensure IDE supports command-line arguments
- macOS users: use "Create Command-line Launcher" feature
Cursor position incorrect
- Ensure IDE version supports
--line and --column parameters
- Check command arguments template format
Configuration Examples
See config-examples.md for detailed configuration examples.
License
MIT License - see LICENSE file
中文说明 | README-zh.md
| |