Page down/up when clicking in the VSCode scrollbar

Viewed 741

Is there a setting to change the click behavior in the scrollbar to page up/down instead of jumping to the location in the file? This is the usual scrollbar behavior in almost every other applications except maybe unix applications. A suggestion could be:

  • Left click: page up/down
  • Right click: jump to location
3 Answers

There is a setting for this now:

Editor: Scroll by Page

Controls whether clicks scrolls by page or jumps to click position.

With that setting enabled, the editor will scroll by one viewport page when clicking anywhere above or below the scrollThumb. With it not enabled (the default) it will scroll to the position in the scroll track where you clicked.

If, like me, you've been brought to this page despite putting "Visual Studio" into your web search, you can modify this behaviour in the full blown Visual Studio as follows:

  • Tools > Options > Text Editor > All Languages > Scroll Bars
  • Under "Behavior", toggle between bar mode and map mode

More information can be found by reading the Microsoft Docs for this feature.

Related