4

In my linux version of VS Code, when I press the Alt key it focuses on the File tab of the menu bar. Not sure how I made it this way. It wasn't this way before.

How do I disable this?

4
  • Hitting Alt key singly will move focus of the window on menu bar. I think it is the default behavior of most GUI application in both Linux and Windows, you can try in other application on your desktop. Why do you want to change this? Do you want to use some specific keybinding in fact, or other purposes?
    – rustyhu
    Nov 7, 2021 at 5:01
  • You said "It wasn't this way before" so what is the behavior of Alt your expect before?
    – rustyhu
    Nov 7, 2021 at 5:24
  • stackoverflow.com/questions/48044429/… This has the answer Nov 7, 2021 at 17:32
  • Advise you to write your own answer, or flag this post as a duplicate.
    – rustyhu
    Nov 9, 2021 at 6:29

3 Answers 3

9

In settings.json

"window.titleBarStyle": "custom",
"window.customMenuBarAltFocus": false
1
  • This one simply solves the problem entirely. I think it should be accepted.
    – toraman
    Jul 2, 2022 at 14:59
0

Press Ctrl-, to open the setting and search for:

window.enableMenuBarMnemonics

Disable the option.

Or add this to your settings.json file:

"window.enableMenuBarMnemonics": false,

https://code.visualstudio.com/updates/v1_36#_disable-alt-key-focus-of-the-custom-menu-bar

1
  • It doesn't help on Ubuntu 22.04
    – N. Kirill
    Aug 18, 2022 at 14:10
0

these settings helped me:

"window.titleBarStyle": "custom"
"window.customMenuBarAltFocus": false
"window.enableMenuBarMnemonics": false
"window.menuBarVisibility": "visible"

after settings, perhaps you may need to reload the window: Ctrl+Shift+P and select Developer: Reload window

my OS: Fedora Linux 37 (Workstation Edition), Gnome 43.3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.