It seems that F11 for toggle fullscreen is overwrite F11 "Step into" keyboard shortcut while debugging. How it can be fixed?
F11/Shift+F11 ⮕ Step into/out This shortcut is to step into the breakpoint or step out of it. It starts the execution or ends the execution of the current breakpoint.
In short, pressing F11 will take you to every line including your function body, but F10 allows to move from one line to the the immediate next line.
To bring up the Run and Debug view, select the Run and Debug icon in the Activity Bar on the side of VS Code. You can also use the keyboard shortcut Ctrl+Shift+D. The Run and Debug view displays all information related to running and debugging and has a top bar with debugging commands and configuration settings.
For MacOS:
Go to System Preferences -> Keyboard -> Keyboard
and check the box to invert the function key behavior / to choose standard function key behavior.
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
It is possible to change key bindings at
keybindings.json
file in %APPDATA%\Code\User
).{ "key": "f11", "command": "workbench.action.debug.stepInto", "when": "inDebugMode" }
to that file.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With