How to hide minimap (preview bar) in visual studio code?

For most of us, the vscode feature minimap (a floating file preview pane) is annoying! If you would like to disable it, here are the steps.

  • Open vscode File menu.
  • Click Preferences.
  • Click Settings.
  • In the search settings, search for editor.minimap.enabled
  • Uncheck – Controls whether the minimap is shown.
vscode minimap (file preview floating pane)

Notes: This setting is tested in Windows Visual Studio Code Editor. VSCode identifies this preview pane as the minimap.