Skip to content

VS Code: Locked Scrolling

VS Code Locked Scrolling

Good news! You can now synchronize scrolling across your editors.

Whenever you scroll in one editor, all the others follow suit.

This comes in handy when youโ€™re comparing files side-by-side.

Letโ€™s see how to enable this feature.

Toggle Locked Scrolling

Press down CTRL + SHIFT + P to open the Command Palette, and select View: Toggle Locked Scrolling Across Editors.

VS Code Locked Scrolling Command

๐ŸŽฅ See the video presentation of this feature:

If you want to toggle this off, you can run the same command, or just click on the Scrolling Locked text at the bottom of the screen.

Create Keybind

You can also set up a keyboard shortcut for this command.

Press down CTRL + SHIFT + P and select Preferences: Open Keyboard Shortcuts command.

In there, search for workbench.action.holdLockedScrolling and set up a keybind.

Happy coding ๐Ÿ’œ


Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.   
  

Comments