'MacOS keybindings not overriden inside VS Code debugger?
I'm currently using VSCode Version 1.28.2 (1.28.2). When I use the integrated debugger, I find that the F11 key (whose purpose is to step into a function) does not override the MacOS (Sierra 10.12.6) default behaviour (show Desktop). I'm currently bypassing the issue by disabling the shortcut on my Mac, but this seems like a sub-par fix. Is there a better way?
Solution 1:[1]
Hold down the fn key when you press F11 and it will then act as F11 and not "Show Desktop".
Solution 2:[2]
Try Fluor. It can automatically enable the Function keys depending on the current application in view.
This lets you use F11, and other function keys in VS Code while automatically switching back to the default functions when in other apps.
Solution 3:[3]
For MacOS:
Go to System Preferences -> Keyboard -> Shortcuts and uncheck the "Show Desktop F11" option inside one of the submenus (Mission Control).
This worked for me on
Catalina 10.15.7
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Brett Cannon |
| Solution 2 | xrisk |
| Solution 3 | JesusLovesYou |
