Home > Net >  Is there a Visual Studio Code command for hiding the scroll bar on one of the editors upon an editor
Is there a Visual Studio Code command for hiding the scroll bar on one of the editors upon an editor

Time:07-29

Is there a VSC command that is related to hiding the scroll bar?

CodePudding user response:

Remove Minimap:

View->Show Minimap

Remove the Overview Ruler:

Add the following to your settings.json file

"editor.hideCursorInOverviewRuler": true

This will keep the scrollbar, but will result in it only appearing when the cursor is within the editor.

Completely remove scrollbars (requires restart):

If you would like to completely remove the scrollbars, add the following to your settings.json file (the editor may say "Unknown configuration setting" - ignore this. It will still work):

"editor.scrollbar.horizontal": "hidden",
"editor.scrollbar.vertical": "hidden"

This will result in the scrollbars not being visible even when the cursor is in the editor.

  • Related