Synchronise vertical/horizontal scrolling in split view

Visual Studio-CodeHorizontal ScrollingVertical Scrolling

Visual Studio-Code Problem Overview


Is there a way in VS Code to synchronise vertical or horizontal scrolling in splitted view ?

Like in Notepad++ for instance :

From buttons:

Notepad++ Vertical/Horizontal sync

From View menu:

Notepad++ Vertical/Horizontal sync

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

2021 EDIT: While the below does still work, as per @Mr.D.Q's answer below, there does now exist a plugin Sync Scroll to accomplish this task.

--

From what I can find, the closest thing you can do is use the "Compare Files" feature.

In the File-Explorer sidebar:

  • Right-click on File A -> Select For Compare

  • Right-click on File B -> Compare With Selected

Solution 2 - Visual Studio-Code

If you want to more advanced synchronized scrolling feature, please check out this vscode extension Sync Scroll

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichaël PollaView Question on Stackoverflow
Solution 1 - Visual Studio-CodeRich WerdenView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeMr.D.QView Answer on Stackoverflow