How to restore the menu bar in Visual Studio Code

后端 未结 11 983
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 01:38

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?

相关标签:
11条回答
  • 2020-12-08 01:57

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

    0 讨论(0)
  • 2020-12-08 01:59

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

    0 讨论(0)
  • 2020-12-08 02:00

    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
    0 讨论(0)
  • 2020-12-08 02:07

    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

    0 讨论(0)
  • 2020-12-08 02:10

    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).
    0 讨论(0)
  • 2020-12-08 02:12

    Press Alt to make the menu visible and then in the View menu choose Appearance -> Show Menu Bar.

    macOS: 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.

    0 讨论(0)
提交回复
热议问题