Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override <ALT> to toggle menu bar on VS CODE

What I want to achieve is as follows:

  1. Disable ALT to show menu bar by toggle-menu-bar completely.

    -> Potentially map ALT to a NULL action?

  2. Use a different shortcut to toggle-menu-bar.

Is there a way to achieve this?

like image 899
User. Who Avatar asked Dec 31 '17 17:12

User. Who


People also ask

How do you toggle the menu bar in VS Code?

You can hide the Menu Bar on Windows and Linux by changing the setting window. menuBarVisibility from classic to toggle . A setting of toggle means that a single press of the Alt key will show the Menu Bar again. You can also hide the Menu Bar on Windows and Linux with the View > Toggle Menu Bar command.

How do I hide the menu bar in Visual Studio?

Menu and title bar are in auto-hide mode and are accessible if you press "Alt" or "Ctrl-Q" hotkey or hover mouse over window top.


2 Answers

On Ubuntu I needed this two settings in settings.json :

"window.titleBarStyle": "custom", "window.customMenuBarAltFocus": false 

(VS Code restart might be required)


Related:

  • https://github.com/microsoft/vscode/issues/84227
  • https://code.visualstudio.com/updates/v1_36#_disable-alt-key-focus-of-the-custom-menu-bar
like image 169
Eyal Levin Avatar answered Oct 05 '22 03:10

Eyal Levin


My only solution is to set menu always hidden to prevent interfering with alt-hotkeys. But enabling mnemonics still allows you to reveal it by pressing Alt+F for example. enter image description here

like image 34
Dmitriy Botov Avatar answered Oct 05 '22 03:10

Dmitriy Botov