Skip to content

denisbalber/IDESync-VSCode-JetBrains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDE Sync - VSCode-JetBrains IDE Sync

Note: This synchronization system is suitable for VSCode, VSCode forks like Cursor or Windsurf as well as JetBrains IntelliJ-based IDEs like Rider, IntelliJ IDEA and WebStorm.

A synchronization system that allows seamless switching between VSCode and JetBrains IntelliJ-based IDEs while maintaining the current file and cursor position.

Installation via Marketplace

VSCode Extension

Install directly from the Visual Studio Code Marketplace

  • Open VSCode
  • Go to Extensions (Ctrl+Shift+X)
  • Search for "IDE Sync - Connect to JetBrains IDE"
  • Click Install

JetBrains IDE Plugin

Install directly from the JetBrains Marketplace

  • Open JetBrains IDE
  • Go to Settings > Plugins
  • Search for "IDE Sync - Connect to VSCode"
  • Click Install

Version Compatibility

VSCode

  • Supported versions: VSCode 1.84.0 and newer

JetBrains IDE

  • Supported versions: 2023.3 and newer

Configuration

The default port is 3000, this can be changed in the respective settings and must be the same:

  • In VSCode: Settings > Extensions > IDE Sync - Connect to JetBrains IDE > Port
  • In JetBrains IDE: Settings > Tools > IDE Sync - Connect to VSCode > WebSocket Port

Usage

  1. Start both IDEs
  2. Make sure that the sync is activated in the status bar of both IDEs
  3. When you switch between IDEs, the current file and cursor position will be synchronized automatically

Features

  • Real-time synchronization of file opening and cursor position
  • Automatic reconnection on port changes
  • Status bar indicator showing connection status

Components

VSCode Extension

  • Located in /vscode-extension
  • Monitors current file and cursor position in VSCode
  • Communicates with JetBrains plugin via WebSocket

JetBrains IDE Plugin

  • Located in /jetbrains-plugin
  • Monitors current file and cursor position in JetBrains IDE
  • Communicates with VSCode extension via WebSocket

Building

Prerequisites

  • Node.js and npm for VSCode extension
  • JDK 17+ and Gradle for JetBrains IDE plugin

Build Steps

  1. Clone the repository
git clone https://github.com/denisbalber/IDESync-VSCode-JetBrains.git
cd IDESync-VSCode-JetBrains
  1. Build VSCode extension
cd vscode-extension
npm install
npm run build
npm run package
cd ..
  1. Build JetBrains plugin
cd jetbrains-plugin
./gradlew buildPlugin
cd ..

Installation

VSCode Extension

  1. Install the VSCode extension: Ctrl+Shift+P > Extensions: Install from VSIX... > Select IDESync-VSCode-JetBrains/vscode-extension/vscode-jetbrains-sync-0.1.0.vsix
  2. Restart VSCode

JetBrains IDE Plugin

  1. Install the JetBrains IDE plugin: Settings > Plugins > Manage Repositories,... (Settings symbol) > Install Plugin from Disk... > Select IDESync-VSCode-JetBrains/jetbrains-plugin/build/distributions/vscode-jetbrains-sync-1.0.0
  2. Restart JetBrains IDE

About

A synchronization system that allows seamless switching between VSCode and JetBrains IDEs while maintaining the current file and cursor position.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors