How could I hide the minimap bar on sublimetext 3

25,883

Solution 1

Click on View (check the mouse arrow/pointer in below image) on top menu bar or hit Alt + V and click Hide Minimapenter image description here

Solution 2

I added a shortcut on Sublime Text 3.

Go to Preferences -> Key Bindings. In user key bindings I added:

[
    { "keys": ["ctrl+f2"], "command": "toggle_minimap" },
]

Obviously you can choose another key combination.

Solution 3

I don't believe there's a setting in Sublime Text 3 to hide the minimap by default.

This solution has worked perfectly for me, however:

Save the following Python code as minimap_setting.py in the User directory (in Preferences -> Browse Packages):

# -*- encoding: utf-8 -*-

import sublime
import sublime_plugin

class MinimapSetting(sublime_plugin.EventListener):

    def on_activated(self, view):
        show_minimap = view.settings().get('show_minimap')
        if show_minimap:
            view.window().set_minimap_visible(True)
        elif show_minimap is not None:
            view.window().set_minimap_visible(False)

Then, you just add "show_minimap": false in your settings and you're good to go.

Solution 4

Ctrl+Shift+p to open the command palette, then type in minimap.

enter image description here

Solution 5

It's very easy in Sublime text 3. To hide Minimap:

View > Hide Minimap

Share:
25,883
user3675188
Author by

user3675188

Updated on July 18, 2022

Comments

  • user3675188
    user3675188 almost 2 years

    It takes too much space on the window,

    I tried some option in the configuration

    It seems not working, any idea ?

    User setting

    "draw_minimap_border": false,
    "draw_minimap": false,
    "hide_minimap": true,
    "always_show_minimap_viewport": false
    

    inline

  • AdamG
    AdamG almost 7 years
    Can it be hidden by default, which is what I think this question was asking?
  • Sohel Ahmed Mesaniya
    Sohel Ahmed Mesaniya almost 7 years
    Once you perform this settings, this will remain as it is until you change it, regardless of whatever operations is performed on Sublime text
  • gArn
    gArn over 6 years
    I find "ctrl+k", "ctrl+m" is a nice combo, as "ctrl+k", "ctrl+b" is the default for toggling the side bar
  • Amir Hassan Azimi
    Amir Hassan Azimi about 6 years
    @SohelAhmedM it doesn't remain as default
  • Sohel Ahmed Mesaniya
    Sohel Ahmed Mesaniya about 6 years
    @HassanAzimi please see my above comment
  • Amir Hassan Azimi
    Amir Hassan Azimi about 6 years
    @SohelAhmedM I've seen it already. Still will not remain as default!
  • Jaakko
    Jaakko about 5 years
    Open only one sublime instance, set View->Hide Minimap and close it. Then it worked for me (v3.2.1 Ubuntu 18.04).
  • Jaakko
    Jaakko about 5 years
    It's annoying though that Sublime is steering away from the JSON configuration towards GUI based configuration.
  • mbigras
    mbigras about 3 years
    The command palette solution is such a quick fix! I love when sublime uses the command palette!