Is there a way in VS Code
to synchronise vertical or horizontal scrolling in splitted view ?
Like in Notepad++
for instance :
From buttons:
From View menu:
To synchronise the scrolling of two documents, click on “View” in the top bar, then click “Synchronise Vertical Scrolling” and/or “Synchronise Horizontal Scrolling”. Click on “View” in the top bar, then click “Synchronise Vertical Scrolling” and/or “Synchronise Horizontal Scrolling”.
Scroll horizontally with the mouse wheel when holding the shift key. Enables horizontal scrolling by holding down the Shift key and spinning the mouse wheel in Visual Studio 2017, 2019 and 2022. This feature is available in many other programs. Once you're used to it, it is sorely missed.
Open VS Code with the files you are going to compare. Right-Click one file you want to compare => Select for Compare.
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:
If you want to more advanced synchronized scrolling feature, please check out this vscode extension Sync Scroll
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With