90

The newest version of ST3 allows linux users to remove their menu bar, but I fail to see how to bring it back. In Windows, pressing Alt shows the menu, but not so in Linux. How can I get it back? Is there a shortcut I can set, or make it so that Alt shows it?

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
timetofly
  • 2,171
  • 2
  • 13
  • 10
  • Wow, yeah I just realised the menu is gone now that I want to change projects - this is so very unusable. None of the suggestions below worked for me on Ubuntu 16 LTS with ST3 updates all applied. – danjah May 17 '16 at 10:39

6 Answers6

116

See Show Menu in Sublime:

Ctrl+Shift+p then type vmen

I have yet to figure out how to make it a key binding. Will update when/if I do.

Edit: see jeremija's answer below to see how to set a hotkey.

timetofly
  • 2,171
  • 2
  • 13
  • 10
49

If you wish to add a hotkey you can edit your Default (Linux).sublime-keymap file:

  • press CTRL+SHIFT+P
  • typing key bindings user
  • select Preferences: Key Bindings - User

This should open the Default (Linux).sublime-keymap file. Add this line:

{"keys": ["ctrl+alt+m"], "command": "toggle_menu"}

If your .sublime-keymap file was empty, you should wrap the above in JSON array brackets [ and ], like so:

[
    {"keys": ["ctrl+alt+m"], "command": "toggle_menu"}
]

After you save the file, Sublime should reload the hotkey bindings automatically and you should be able to use the CTRL+ALT+M hotkey to toggle the menu bar.

I still miss the ability to show the menu just by pressing ALT+LETTER to open the specific menu automatically, but this (along with the Command Palette) helps a lot.

jeremija
  • 591
  • 4
  • 4
  • Interestingly, compared to the OP, I had the reverse problem: As of build 3065, it seems they removed the View -> *Hide* Menu entry. Your solution was the only one that actually made the menu disappear. Thank you so much! – balu Nov 28 '14 at 20:44
  • I'm glad I could help :) The accepted answer also works for me on build 3065. – jeremija Dec 01 '14 at 10:45
  • Ok, this is really strange. Maybe it has something to do with the fact I'm using a tiling window manager (namely, i3). – balu Dec 01 '14 at 14:32
  • It's called `View: Toggle Menu`, not `View -> Hide Menu` - maybe that's why you can't find it? P.S. I've never tried i3, but I really like i3lock :) – jeremija Dec 01 '14 at 14:36
  • No, it's really not there. :( – balu Dec 01 '14 at 15:36
  • @balu, I just tried that in `i3` and I can see that option in the `Command Palette` so maybe a sublime package you have installed breaks it somehow. – jeremija Dec 04 '14 at 08:09
  • No, it's been absent since right after installation when I didn't have any packages installed yet. – balu Dec 04 '14 at 09:40
16

You can simply press "alt+v" ,you will see menu bar then click "show menubar".

Chintan
  • 161
  • 1
  • 2
6

Close Sublime.

Edit ~/.config/sublime-text-3/Local/Session.sublime_session

Change all instances of menu_visible to be true, e.g.: "menu_visible": true

Close, save, and restart Sublime.

3

(OpenSuse 13.2)

In the file /home/.config/sublime-text-3/Local/Session.sublime_session

locate this line (around 165) and change the "false" to "true" like this:

"menu_visible": true,

Atakan
  • 39
  • 1
  • 1
    This duplicates another answer and adds no new content. Please don't post an answer unless you actually have something new to contribute. – DavidPostill Dec 05 '15 at 22:24
1

I found a solution. In terminal:

sudo gedit /usr/share/applications/sublime_text.desktop

Add env UBUNTU_MENUPROXY=0 in Exec= before /opt/* as shown in fig.

Enjoy!

Ref: https://stackoverflow.com/a/38388249/6815550