167

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?

Enter image description here

0

18 Answers 18

306

For Windows users:

For older versions (<1.54) of Visual Studio Code: Press Alt to make the menu visible temporarily. While the menu is visible go to the View menu and choose Appearance -> Show Menu Bar.

For newer versions see the following steps or if Alt does not work use Crtl + Shift + P for command pallete, type 'menu' and select View: Toggle Menu Bar

Alternativily open settings Ctrl+,, search for and change Window: Menu Bar Visibility to either classic or visible.

For macOS users:

If you are in Full-Screen mode you can either move the cursor to the top of the screen to see the menu, or you can exit Full-Screen using Ctrl+Cmd+F, or ⌃⌘F in alien's script.

Sign up to request clarification or add additional context in comments.

11 Comments

I almost got stuck with this thing.Now the menus popped up again by using alt. Thank you very much.
In Visual Studio Code 1.41 (2019-12), at least on Linux (Debian), it is in menu View, but in submenu Appearance (3rd item), under a different name, Show Menu Bar (4th item).
@PeterMortensen It is the same under 1.41.1 Windows as well. I attempted to edit the answer with the most current solution but it was arbitrarily rejected.
How to do this on MacBook?
@JiechaoWang there is no really an option for that on mac. If you are in Full-Screen nome you can either move the cursor to the top of the screen to see the menu, or you can exit Full-Screen using ctrl+cmd+F (or ⌃⌘F in alien speak). Let me know if it helped?
|
83

If you are like me - you did this by inadvertently hitting F11 - toggling fullscreen mode. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

3 Comments

Didn't hit F11, alt was involved. Was more than just full screen; normal layout completely erased, code window shrunk into center. But F11 reverted.
Good to know! ;-)
Thanks! Good to know! Struggling to find why my menu was gone.
52

Another way to restore the menu bar is to trigger the View: Toggle Menu Bar command in the command palette (F1).

3 Comments

ALT, and then View --> Appearence --> Toggle Menu Bar (at least in my edition of the VS code)
Yes, typing "menu" in F1 reduce it down to two items.
Mine was hidden in a hamburger menu (top left) because I'm on a portrait oriented display
15

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).Click Full Screen to switch off and restore the menu bar

Please see the attached screenshot.

Comments

12

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"

Comments

7

There are many things that could go wrong. Tiered, in order of easy to fix/likely to happen, they are:

  1. You are in full screen mode (F11 or something similar to get out of it)
  2. VSCode has the entire "Title Bar" (where the menu bar resides) hidden (go into settings to fix this)
    • If you're on Linux, it's likely that you're dealing with option #2 ("Title Bar" is hidden), due to awful defaults in some windowing managers now, and VSCode's interpretation of how to use said defaults.
  3. VSCode has the "Menu Bar" (which is in the title bar) either hidden, or shown in a different way (go into settings to fix this)

How to get to settings

  1. Are you in fullscreen mode? Usually pretty easy to tell. You might be able to use the OS specific shortcut (likely F11 for Windows/Linux and Ctrl+Cmd+F for OSX) to get out of it. If not, go to the Command Palette, using Ctrl+Shift+P (more details here), and type "fullscreen". There should be a toggle fullscreen mode option for you to click.
  2. Is the "Title Bar" missing? It should look something like this: List item Go to settings (see above, Gear Icon in bottom left -> Settings) and search for "menu". Then navigate to the User -> Window settings (User/Workspace are tabs at the top, then Window is a section on the left). The last setting there: "Title Bar Style" is what you want. Change it from "Native" to "Custom" Menu Settings
  3. Is the "Menu Bar" missing (though you have a title bar)? It might be missing, or just shown in a different way. Just like in option #2 above, navigate to settings (Gear Icon -> Settings), search for "menu", select User -> Window. The 2nd to bottom option is "Menu Bar Visibility". "classic" option might not be working for you. Select "visible". "toggle" might only show when you press the Alt key, "hidden" is hidden of course, and "compact" is where it shows the 3 lines menu ("hamburger menu") on the left hand pane instead.

Saving these might prompt to restart VSCode, but they took effect for me immediately regardless.

Apologies for overlap of answers, but some answers only covered some of these scenarios, and none of them covered the "Title Bar missing" scenario.

Comments

6
  1. Click on the 'Manage' button.

    enter image description here

  2. Select 'Settings'.

    enter image description here

  3. In the search bar type: 'menu bar visibility'.

    enter image description here

  4. In the drop-down select 'classic' or 'visible'.

    enter image description here

1 Comment

If the activity bar is visible <kbd>Alt</kbd> most probably shows the compact menu as a hamburger at the top.
4

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:

  1. Press Alt to make menu visible
  2. Click on the View menu, navigate to the Appearance option and choose Show Menu Bar

2 Comments

Pressing the Alt key no longer makes the menu visible on Windows
Simple , thats it
4

Press Ctrl + Shift + P to open the Command Palette.

Enter image description here

Enter image description here

After that, you write menu
Option is enabled

3 Comments

An "enter image description here" link to an answer is not recommended as it constitutes poor formatting.
The last part, starting with "After that" could be clearer (seems somewhat incomprehensible). Can you fix it (by editing your answer)?
After Ctrl + Shfit + P select "View: Toggle Menu Bar"
3

Press Ctrl + Shift + P to open the Command Palette, then write command : Toggle Menu Bar

Comments

3

ALT will bring up the menu to allow an immediate action. Follow this with:

View > Appearance > Menu Bar

which will restore the menu bar.

Linux, Visual Studio Code 1.81.0

1 Comment

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
2

From Version: 1.56.2 on in OSX you need to update in settings.json file

"workbench.editor.showTabs": true

instead of

"window.menuBarVisibility": "default"

Comments

1

You have two options.

Option 1

Make the menu bar temporarily visible.

  • press Alt key and you will be able to see the menu bar

Option 2

Make the menu bar permanently visible.

Steps:

  1. Press F1
  2. Type user settings
  3. Press Enter
  4. Click on the { } (top right corner of the window) to open settings.json file see the screenshot
  5. Then in the settings.json file, change the value to the default "window.menuBarVisibility": "default" you can see a sample here (or remove this line from JSON file. If you remove any value from the settings.json file then it will use the default settings for those entries. So if you want to make everything to default settings then remove all entries in the settings.json file).

1 Comment

Pressing the Alt key in Windows no longer displays the menu bar. Use Ctrl+Shift+p typing Menu and selecting View: Menu Bar Toggle instead
1

All these answers were wrong for me. Press ALT.

Comments

0

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 to classic.

Second, the Show Menu Bar entry in the the application menu bar now toggles between the classic and compact options. To hide it completely, you can update the setting, or use the context menu of the Activity Bar when in compact mode.

Comments

0

Press Ctrl+Shift+P, type menu, select View: Toggle Menu Bar and the menu bar should be back. If not add a comment

Comments

0

Here is a simple solution to bring back the activity bar. Just click on the view tab on top of vs code > appearance > then check activity bar then from there it has to appear

Comments

0

In addition to setting menu visibility via the other answers, the VS Code window width must exceed a certain threshold for a normal menu to be displayed. Otherwise, you get the "hamburger menu". For my current settings, this is around 1068 pixels due the addition of the "toggle sidebar", "toggle panel", and "toggle secondary sidebar" widgets.

enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.