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:
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:
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
See issue ticket Synchronized Scrolling in Split Editor #33110. See the VS Code 1.88 release notes.
You can use the View: Toggle Locked Scrolling Across Editors
command. Quoting one of the maintainers (Benjamin) in their comment:
[the command] will synchronize the scrolling across all text editors and notebooks. You can also set a keybinding for workbench.action.holdLockedScrolling which will synchronize the scrolling only when being pressed.
You can also bind a keyboard shortcut to the command ID workbench.action.holdLockedScrolling
, which will synchronize scrolling only while that keyboard shortcut is being pressed.
Note that you can also use the "select for compare" feature to get a similar effect (see Visual Studio Code - is there a Compare feature like that plugin for Notepad ++?).
© 2022 - 2024 — McMap. All rights reserved.