答案 0 :(得分:4)
自2020年1月起更新:
{
"key": "shift+escape",
"command": "notifications.clearAll"
}
答案 1 :(得分:2)
esc 应该删除所有可见的消息。
您还可以为workbench.action.closeMessages
命令配置自定义键绑定。这是默认的键绑定:
{
"key": "escape",
"command": "workbench.action.closeMessages",
"when": "globalMessageVisible"
}