更新,截至 2020 年 1 月:
{
"key": "shift+escape",
"command": "notifications.clearAll"
}
Run Code Online (Sandbox Code Playgroud)
esc 应该关闭所有可见的消息。
您还可以为leaveEditorMessage命令(或workbench.action.closeMessages在较旧的 VS Code 版本上)配置自定义键绑定。这是默认的键绑定:
{
"key": "escape",
"command": "leaveEditorMessage",
"when": "messageVisible"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2373 次 |
| 最近记录: |