1

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?

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

1 Answers1

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