VSCode(Ubuntu Linux):如何禁用Zen/全屏模式下Alt键触发顶部导航?
Fixing Alt Key Conflict in VS Code (Ubuntu: Zen/Full-Screen Mode)
Absolutely, you can resolve this frustrating conflict between the Alt key's menu bar toggle and your word-jump shortcut. Here's a step-by-step solution:
Method 1: Use the Settings GUI
- Open VS Code's settings by pressing
Ctrl+,(or go to File > Preferences > Settings from the menu bar). - In the search bar at the top, type
window.customMenuBarAltFocus. - Uncheck the checkbox next to this option (this sets the value to
false). This disables the behavior where pressing Alt toggles the visibility of the top window navigation bar.
Method 2: Edit Settings JSON Directly
If you prefer working with the raw config file:
- Open the command panel with
Ctrl+Shift+P. - Type
Open Settings (JSON)and select the option. - Add the following line to your settings JSON (make sure it's properly formatted with commas if needed):
"window.customMenuBarAltFocus": false - Save the file, and the change will take effect immediately.
After making this change, when you enter Zen Mode or full-screen in VS Code, pressing the Alt key will no longer trigger the top navigation bar to show/hide—you can use it for word-to-word jumps as intended.
内容的提问来源于stack exchange,提问作者Petr Klein
相关产品推荐
相关产品推荐

