如何在 visual studio 代码中隐藏菜单栏?

How can I hide the menu bar in visual studio code?

如何在 visual studio 代码中隐藏菜单栏? 我找不到执行此操作的命令。在某些应用程序或浏览器中,使用了 alt 键,但我无法在菜单栏中找到隐藏它的命令或选项。你能帮帮我吗?

您可以通过单击 View 菜单中的 Toggle Menu Bar 选项来隐藏菜单栏。


pramesh-bajracharya在评论中指出的那样,恢复菜单栏:

Ctrl + Shift + P 将打开命令 window,您可以键入“切换菜单栏”来打开和关闭它。

如果要使用 Alt 切换菜单栏,请参阅此设置:

// Control the visibility of the menu bar. A setting of 'toggle' means that the menu bar is hidden and a single press of the Alt key will show it. By default, the menu bar will be visible, unless the window is full screen.

 "window.menuBarVisibility": "toggle",

默认为 "default",请在您的用户设置中将其更改为 "toggle"..