I'm trying to bind Clear Console
(workbench.debug.panel.action.clearReplAction
) to a shortcut, the problem is what's the When
condition for checking if the debug console is active?
Asked
Active
Viewed 94 times
1

Wenfang Du
- 8,804
- 9
- 59
- 90
1 Answers
1
I've figured this out:
{
"key": "ctrl+l",
"command": "workbench.debug.panel.action.clearReplAction",
"when": "inDebugRepl && textInputFocus"
}

Wenfang Du
- 8,804
- 9
- 59
- 90