I am not able to find in the documentation about how to clear debug console by using the keyboard shortcut.
Is there a way to do so?
To launch the Define Keybinding widget, press Ctrl+K Ctrl+K. The widget listens for key presses and renders the serialized JSON representation in the text box and below it, the keys that VS Code has detected under your current keyboard layout.
You can define a keyboard shortcut for any task. From the Command Palette (Ctrl+Shift+P), select Preferences: Open Keyboard Shortcuts File, bind the desired shortcut to the workbench.
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
There is no default shortcut provided, however, you can create your own shortcut:
{ "key": "ctrl+k", "command": "workbench.debug.panel.action.clearReplAction", "when": "inDebugRepl" }
Just using the clear console icon that is at top and right of the console window.
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