How to disable VS Code minimap in Windowed mode?

Visual Studio-CodeVscode Settings

Visual Studio-Code Problem Overview


I did the following in Visual Studio Code:

  1. settings.json => "editor.minimap.enabled": true
  2. Open 2ed files side by side (windowed mode)
  3. Minimap exists in both windows

This takes up too much room, but I still want to use the Minimap when I'm editing a single file in a single window. Is there a way to have the Minimap enabled for a single file, but disabled in side-by-side "Windowed" mode?

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

Toggle minimap command has been added since vscode 1.16. Hit command + shift + p and select View: Toggle Minimap.

Solution 2 - Visual Studio-Code

There is no way to do this in VS Code. Currently there is only the "editor.minimap.enabled": false setting which can be true or false and either always enables the minimap or always disables it.

Unfortunately, as shown in this issue, there is also no "toggleMinimap" command to assign to keybindings.

You might find this extension useful, though, as it can be used to create a toggle minimap command:

settings:

"settings.cycle": [
    {
        "setting": "editor.minimap.enabled"
    }
]

keybindings.json:

{
    "key": "ctrl+shift+t",
    "command": "settings.cycle.workbench.colorTheme",
    "when": ""
}

Solution 3 - Visual Studio-Code

Simplest way is go to: View -> Toggle Minimap

Update:

In newer versions: View -> Show Minimap

Solution 4 - Visual Studio-Code

To remove/disable/hide VS Code Minimap,
Go to the View tab and uncheck this: View > Show Minimap

remove/disable/hide VS Code Minimap

Solution 5 - Visual Studio-Code

  1. Go to File -> Preferences -> Keyboard Shortcuts
  2. type in "View: minimap"
  3. right click and add a key binding. I like to use ctrl+m ("m" for minimap)

If there are existing key bindings, you can use another one, or click the existing one(s) listed, then right click them and remove the binding before repeating steps 2 and 3 above.

Solution 6 - Visual Studio-Code

New option available, View-> Show minimap (uncheck)

Solution 7 - Visual Studio-Code

In Visual Studio Code Version 1.41.1. Go to

> Files >> Preferences >> Settings

Select

> Text Editor >> Minimap >> Uncheck Enabled checkbox

Solution 8 - Visual Studio-Code

I didnt find "minimap", instead I found:

[Options]>>[Text Editor]>>[All Languages]>>[Scroll Bars]>>Behavior>>"Use map mode for vertical scroll bar"

I am not able to embed image yet, check link

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
QuestioncagmzView Question on Stackoverflow
Solution 1 - Visual Studio-CodeKing JulienView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeLleweyView Answer on Stackoverflow
Solution 3 - Visual Studio-CodeAbdul RafayView Answer on Stackoverflow
Solution 4 - Visual Studio-CodeTaib Islam DipuView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeFrank ForteView Answer on Stackoverflow
Solution 6 - Visual Studio-CodeHitesh KumarView Answer on Stackoverflow
Solution 7 - Visual Studio-CodeZameer KhanView Answer on Stackoverflow
Solution 8 - Visual Studio-CodejantilkView Answer on Stackoverflow