Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: what is the keyboard short cut to clear debug console

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?

like image 996
Vikas Bansal Avatar asked Dec 22 '16 07:12

Vikas Bansal


People also ask

What is Ctrl K in VS Code?

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.

What is Ctrl Shift P in VS Code?

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.

What is Ctrl D in VS Code?

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.


2 Answers

There is no default shortcut provided, however, you can create your own shortcut:

{      "key": "ctrl+k",     "command": "workbench.debug.panel.action.clearReplAction",     "when": "inDebugRepl" } 
like image 189
Ahmad Nassri Avatar answered Sep 20 '22 14:09

Ahmad Nassri


Just using the clear console icon that is at top and right of the console window.

like image 32
Jack N Avatar answered Sep 20 '22 14:09

Jack N