CTRL-K works in other terminals (deletes like from the point of cursor) but it says "Ctrl K Was pressed and waiting for second chord"
Upon pressing Ctrl-K twice it says Not a command
CTRL-K works in other terminals (deletes like from the point of cursor) but it says "Ctrl K Was pressed and waiting for second chord"
Upon pressing Ctrl-K twice it says Not a command
Seems like this shortcut has not been set in VS code keyboard shortcuts.
So, Navigate to File > Preferences > Keyboard Shortcuts and in the search bar search for workbench.action.terminal.clear
If the Key Binding is already available you may use that or insert your own key binding.
Below are the steps to change key binding:
Terminal:Clear
row and enter the key binding. Hold the CTRL key and then enter K and then press enter. Your new key binding will now be displayed.Terminal:Clear
row and select Change When Expression
option. Enter terminalFocus
in the text box then press enter. That is all, your new shortcut will work as expected.