Showing menu bar in sublime-text 3

送分小仙女□ 提交于 2020-01-01 01:17:28

问题


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:


You can use the command palette CTRL + SHIFT + P and type menu, the choice View: Toggle Menu should appear.




回答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:


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




回答8:


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"}
]


来源:https://stackoverflow.com/questions/22843465/showing-menu-bar-in-sublime-text-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!