关闭vscode消息框的快捷方式是什么?

时间:2017-06-11 16:49:31

标签: visual-studio-code

enter image description here

是否有关闭屏幕截图中显示的消息框的快捷方式?

2 个答案:

答案 0 :(得分:4)

自2020年1月起更新:

{
    "key": "shift+escape",
    "command": "notifications.clearAll"
}

答案 1 :(得分:2)

esc 应该删除所有可见的消息。

您还可以为workbench.action.closeMessages命令配置自定义键绑定。这是默认的键绑定:

{
  "key": "escape",
  "command": "workbench.action.closeMessages",
  "when": "globalMessageVisible"
}