This is very distracting to me:
I searched through the menus, but didn't find any setting to remove it. Is there any way to banish it from the editor?
This is very distracting to me:
I searched through the menus, but didn't find any setting to remove it. Is there any way to banish it from the editor?
This is called the minimap, and, as stated in that link,
If you would like to disable minimap, you can set
"editor.minimap.enabled": falsein your user or workspace settings.
Once you save the settings file, the minimap will be gone.
Click on "File" -> "Preferences" -> "Settings" After Settings open, in "search settings" or press "Ctrl+f" type "editor.minimap.enabled" this will take you direct to the settings. On left of it edited option will be available right click to it. And set it to "false" After wards you can see the right side pane is hide.
While all the answers here will accomplish what the original question asks, they are showing a dated, manual way of hiding the minimap. Current versions of Code have a "Toggle Minimap" item in the View menu, which will hide the minimap without the need to edit anything manually in User Settings.
I know of 3 ways to show/hide it.
I also made a Youtube tutorial here demonstrating all three ways.
Oowekyala's answer is correct. I am adding a description with image for better understanding. Here is the number from 1 to 5 that describe the steps. Firstly click on File->Preferences->Settings. Then you will get User Setting page. Next, type "editor.minimap.enabled" in the search box(step-4). you will get setting option. On left of it edited option(step-5) will be available right click to it.
This thing is called minimap
to toggle is on and off
crtl+p then search for ">minimap" then just click enter And if you again want to use it, repeat above step's again
2022 Update
The latest 2022 version of VS Code (1.73.0) now makes this even more simpler. Simply do the following to remove the minimap:
Minimap option.Minimap option.Simply Click F1 a text box will appear search for minimap and select View:Toggle MiniMap
From the View menuitem in Visual Code main menu, click on Toggle Minimap
On Windows.
Visual Code version 1.20.1
On Mac: Code - Preferences - Settings, and in the right panel add the following line:
"editor.minimap.enabled": false Please care the commas, this file needs them after each but the last line. (It will warn you if a comma is missing.)
Tools -> option ->Text Editor -> All Languages -> Scroll Bars -> Behavior toggle between the 2 options (use bar mode .. & use Map mode ... ) given that "Show vertical scrollbar " option is checked.