简体   繁体   English

在 sublime-text 3 中显示菜单栏

[英]Showing menu bar in sublime-text 3

I am using Ubuntu 12.04 LTS and I got the Sublime Text editor from here.... http://sublimetext.com/3我正在使用 Ubuntu 12.04 LTS,我从这里得到了 Sublime Text 编辑器.... 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'.我已经用谷歌搜索了很多,即使在执行Alt + V之后,我也没有看到“显示菜单”的选项。

Here is a section of my .config/sublime-text-3/Local/Session.sublime_session :这是我的.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.顺便说一句,我有一个未注册的版本。

  • Invoke the command palette with CTRL + SHIFT + P使用CTRL + SHIFT + P调用命令面板
  • Type menu类型menu
  • Select View: Toggle Menu选择View: Toggle Menu

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.我在其他应用程序上也遇到了这个问题......所以我只是重置了整个事情。

Press Ctrl + Shift + pCtrl + Shift + p

Search for menu搜索menu

Click on view: Toggle Menu点击view: Toggle Menu

It will work它会工作

Apparently there is an undocumented toggle_menu command, so you can bind a key to it.显然有一个未记录的toggle_menu命令,因此您可以toggle_menu绑定一个键。 But Alt alone does not seem to work - I guess because it's a modifier key for SLT.但是单独使用Alt似乎不起作用 - 我猜是因为它是 SLT 的修饰键。

.../User/Default (Linux).sublime-keymap : .../用户/默认 (Linux).sublime-keymap :

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

Simple pressing Alt works for me.简单按Alt对我有用。 I'm using sublime text 3我正在使用 sublime text 3

For me it worked this way:对我来说,它是这样工作的:

I am using ubuntu 18.05 lts我正在使用 ubuntu 18.05 lts

ctrl+shift+p and then you get a search bar with all options. ctrl+shift+p然后你会得到一个包含所有选项的搜索栏。 Type view and select View: Toggle menu输入view并选择View: Toggle menu

it will appear back automatically.它会自动出现。

In Windows, you can press the Alt key and menu will reappear .在 Windows 中,您可以按Alt键,菜单将重新出现。

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.在 Linux 中,您需要按Ctrl + Alt + P然后菜单将出现在屏幕中央,然后您需要选择View -> Hide/Show Menu菜单项。

Then this will be permanently set as default.然后这将被永久设置为默认值。

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:如果像我一样有其他 Linux/Ubuntu/Gnome 桌面环境 n00b,请注意菜单可能出现在屏幕顶部而不是窗口顶部,如下面的屏幕截图所示:

Gnome Desktop Environment menu for Sublime Text 3 Sublime Text 3 的 Gnome 桌面环境菜单

For Linux, folow below steps对于 Linux,请按照以下步骤操作

  1. Close sublime text关闭崇高的文本
  2. Go to /home/-user-directory-/.config/sublime-text-version-/Local/转到 /home/-user-directory-/.config/sublime-text-version-/Local/
  3. vim/edit Session.sublime_session vim/编辑 Session.sublime_session
  4. Look for the last line with “menu_visible”:false,查找带有“menu_visible”的最后一行:false,
  5. change value to true将值更改为 true
  6. Save the file保存文件
  7. Reopen sublime text重新打开崇高文本

I was having the same problem.我遇到了同样的问题。 And the solutions didn`t wok: there wasn't view -> Hide/Show Menu;并且解决方案没有解决:没有视图->隐藏/显示菜单; neither there wasn't View: Toggle menu.也没有视图:切换菜单。

From this post below I found a comment from @MattDMo explaining the following:从下面的这篇文章中,我找到了来自@MattDMo 的评论,解释了以下内容:

"The default Adaptive theme doesn't show the menu, just the hamburger. To get the menu back, go to Preferences -> Select Theme… and choose anything other than Adaptive.sublime-theme." “默认的 Adaptive 主题不显示菜单,只显示汉堡包。要返回菜单,请转到 Preferences -> Select Theme... 并选择 Adaptive.sublime-theme 以外的任何内容。”

how to show the menu bar in sublime text 4 (windows) 如何在 sublime text 4(windows)中显示菜单栏

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM