Showing menu bar in sublime-text 3

2020-05-30 03:54发布

问题:

I am using Ubuntu 12.04 LTS and I got the Sublime Text editor from here.... http://sublimetext.com/3

I've googled this a lot and even after doing Alt+V I don't see an option to 'Show Menu'.

Here is a section of my .config/sublime-text-3/Local/Session.sublime_session:

"menu_visible": true,
"output.find_results":
{
    "height": 0.0
},

and

"distraction_free":
{
    "menu_visible": true,
    "show_minimap": false,
    "show_open_files": false,
    "show_tabs": false,
    "side_bar_visible": false,
    "status_bar_visible": false
},

But I can see the menu bar neither in default state nor in Distraction Free mode

I'm at a loss as to how to see the menu bar. I have an unregistered version by the way.

回答1:

  • Invoke the command palette with CTRL + SHIFT + P
  • Type menu
  • Select View: Toggle Menu


回答2:

If the above solution doesn't work for someone, try:

dconf reset -f /org/compiz/
setsid unity

This should work ! I was having this problem with other apps too... So I just reset the whole thing.



回答3:

Press Ctrl + Shift + p

Search for menu

Click on view: Toggle Menu

It will work



回答4:

Simple pressing Alt works for me. I'm using sublime text 3



回答5:

In Windows, you can press the Alt key and menu will reappear .

In Linux, You need to press Ctrl + Alt + P then menu will appear in center of the screen then you need to choose View -> Hide/Show Menu menu entry.

Then this will be permanently set as default.



回答6:

For me it worked this way:

I am using ubuntu 18.05 lts

ctrl+shift+p and then you get a search bar with all options. Type view and select View: Toggle menu

it will appear back automatically.



回答7:

Apparently there is an undocumented toggle_menu command, so you can bind a key to it. But Alt alone does not seem to work - I guess because it's a modifier key for SLT.

.../User/Default (Linux).sublime-keymap:

[
    { "keys": ["f10"], "command": "toggle_menu"}
]


回答8:

In case there are other Linux/Ubuntu/Gnome Desktop Environment n00bs out there, like me, note that the menus may appear at the top of the screen rather than the top of the window, as per the screen shot below:

Gnome Desktop Environment menu for Sublime Text 3