I disabled the menu bar in preferences and it disappeared as expected. Now there's no way to get to the preferences menu again. How do I get it back?
This question is related to
visual-studio-code
None of these worked for me in Ubuntu 16.4.
Another way to restore the menu bar is to trigger the View: Toggle Menu Bar
command in the command palette (F1).
press Alt to seee the Menubar and then go to view - appearance and remove the check from the fullscreen option
Press Ctrl + Shift + P to open the Command Palette, then write command : Toggle Menu Bar
Some changes to this coming in v1.54, see https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_54.md#updated-application-menu-settings
Updated Application Menu Settings
The
window.menuBarVisibility
setting for the application menu visibility has been updated to better reflect the options. Two primary changes have been made.First, the
default
option for the setting has been renamed toclassic
.Second, the
Show Menu Bar
entry in the the application menu bar now toggles between theclassic
andcompact
options. To hide it completely, you can update the setting, or use the context menu of the Activity Bar when incompact
mode.
In version 1.36.1 I tried to follow the steps mentioned in the previous answers and noticed that the Toggle Menu Bar has moved to a different location and has been renamed to Show Menu Bar. Follow these steps:
If you are like me - you did this by inadvertently hitting F11 - toggling fullscreen mode. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
You have two options.
Make the menu bar temporarily visible.
Make the menu bar permanently visible.
Steps:
Press Ctrl + Shift + P to open the Command Palette.
After that, you write menu
Option is enabled
It's also possible that you have accidentally put the IDE into Full Screen Mode
. On occasion, you may be inadertently pressing F11 to set FullScreen mode to On.
If this is the case, the Accepted Answer above will not work. Instead, you must disable Full Screen mode (View > Appearance > Full Screen).
Please see the attached screenshot.
To restore menu bar visibility so that you don't press key Alt to make the menu bar visible and the menu bar remains visible all the time, see the setting below.
You inadvertently changed the value from "default" to "toggle", so restore the setting to "default" as shown below.
"window.menuBarVisibility": "default"
Source: Stackoverflow.com