【问题标题】:What's the `When` condition for checking if the debug console is active?检查调试控制台是否处于活动状态的“何时”条件是什么?
【发布时间】:2021-06-27 08:45:54
【问题描述】:

我正在尝试将Clear Console(workbench.debug.panel.action.clearReplAction) 绑定到快捷方式,问题是用于检查调试控制台是否处于活动状态的When 条件是什么?

【问题讨论】:

    标签: visual-studio-code vscode-settings vscode-debugger vscode-keybinding


    【解决方案1】:

    我想通了:

    {
      "key": "ctrl+l",
      "command": "workbench.debug.panel.action.clearReplAction",
      "when": "inDebugRepl && textInputFocus"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-11
      • 2019-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多