How to disable or hide scrollbar/minimap?

Visual Studio-CodeVscode Settings

Visual Studio-Code Problem Overview


I can't find any option, setting, or keyboard shortcut that disables or hides that annoying scrollbar. I just don't find it useful and it's distracting.

Can't just edit the editor's CSS like Atom, either.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

Remove Minimap

Add the following to your settings.json file

"editor.minimap.enabled": false

Note that, as pointed out in another answer, this process has now been simplified to:

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, as seen in the image below:

enter image description here

Completely remove scrollbars (requires restart)

If you would like to completely remove the scrollbars, add the following to your settings.json file (note the editor will 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, as seen in the image below:

enter image description here

Solution 2 - Visual Studio-Code

Ctrl + Shift + P -> Open User Settings

"editor.minimap.enabled": false

Solution 3 - Visual Studio-Code

Try this,

view->toggle minimap

or after version 1.43

view->show minimap

Solution 4 - Visual Studio-Code

Removing the scroll bar

These no longer work:

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

However, this will set the size of the scroll bar to 0:

"editor.scrollbar.verticalScrollbarSize": 0,

The toolip says "Unknown Configuration Setting" but it works for me. (Visual Studio Code 1.39.2)

Solution 5 - Visual Studio-Code

So this is an unofficial method as instructed on accepted answer by @badfilms. You can read about it here

After adding, restart vscode: "editor.scrollbar.horizontal": "hidden", "editor.scrollbar.vertical": "hidden" This gives and "Unknown configuration settings", ignore it.

Then to remove the scrollbar seperator or ruler border, add this: "editor.overviewRulerBorder": false

Solution 6 - Visual Studio-Code

Goto View and deselect Minimap.

Disable Minimap in VSCode

Solution 7 - Visual Studio-Code

tested Visual Studio version: VS Community 2017 Version 15.8.2

Tools --> Options

Search for "scroll"

click on "Text Editor" title from the results on the left side.

click "Use bar mode for vertical scroll bar" under "Behavior" section and then click "OK"

Here is a screenshot: Turn off Scroll Bar map mode

Solution 8 - Visual Studio-Code

In Visual Studio 2019 Right click on the scroll bar and select "Scroll Bar Options" from the context menu. This will display the settings for the Scroll Bars.

Under the Behavior heading halfway down, select "Use bar mode for vertical scroll bar" then click Ok. This removed the map mode from the bar.

Solution 9 - Visual Studio-Code

View --> Show Minimap -click it to uncheck it-

Solution 10 - Visual Studio-Code

You can toggle it from the top bar "View > Show Minimap", But you can also define it as a keyboard shortcut!

  1. Go to: "File > Preferences > Keyboard Shortcuts"

  2. Search: "Minimap"

  3. Select: "View: Toggle Minimap"

  4. Select the keyboard you wish to link (I used Ctrl+M)

Solution 11 - Visual Studio-Code

Just to update the situation, in the past the settings mentioned above worked, despite showing an unknown configuration error, after a reload, because they had not been officially exposed to users. With v1.58 these settings will be "official" and not require a reload.

editor.scrollbar.vertical - 'auto' | 'visible' | 'hidden'
editor.scrollbar.horizontal - 'auto' | 'visible' | 'hidden'
editor.scrollbar.verticalScrollbarSize - number
editor.scrollbar.horizontalScrollbarSize - number
editor.scrollbar.scrollByPage - boolean

See Expose editor scrollbar options and react to them being updated.

Solution 12 - Visual Studio-Code

once you go to the user setting it has default setting left had side as bellow and there is a pensile mark on where click and automatically appear true false then right had side custom setting change. Thats how I did it thanks Alexandru. think this may help you.

enter image description here

Solution 13 - Visual Studio-Code

Default value of Scroll Beyond Last Column is 5 which does horizontal scrollbar visible and operate. Set the value to 0 removes horizontal scrollbar.

Settings options

Solution 14 - Visual Studio-Code

for hidden scroll bar add into setting.json

`"window.scrollBarVisibility": "hidden",`

for hidden minimap add :

"editor.minimap.enabled": false,

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser41997View Question on Stackoverflow
Solution 1 - Visual Studio-CodebadfilmsView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeAlexandru MarculescuView Answer on Stackoverflow
Solution 3 - Visual Studio-CodeneouyghurView Answer on Stackoverflow
Solution 4 - Visual Studio-CodePontus HolmbomView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeT K SourabhView Answer on Stackoverflow
Solution 6 - Visual Studio-CodeinsearchofcodeView Answer on Stackoverflow
Solution 7 - Visual Studio-CodeAntiqTechView Answer on Stackoverflow
Solution 8 - Visual Studio-CodeNorm BView Answer on Stackoverflow
Solution 9 - Visual Studio-CodeMadeline McIntoshView Answer on Stackoverflow
Solution 10 - Visual Studio-CodeShlomi AharoniView Answer on Stackoverflow
Solution 11 - Visual Studio-CodeMarkView Answer on Stackoverflow
Solution 12 - Visual Studio-CodePrageeth godageView Answer on Stackoverflow
Solution 13 - Visual Studio-CodeMarekMView Answer on Stackoverflow
Solution 14 - Visual Studio-Codeuser15785127View Answer on Stackoverflow