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

res*_*ing 9 visual-studio-code

在此处输入图片说明

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

Max*_*ian 8

更新,截至 2020 年 1 月:

{
    "key": "shift+escape",
    "command": "notifications.clearAll"
}
Run Code Online (Sandbox Code Playgroud)


Mat*_*ner 6

esc 应该关闭所有可见的消息。

您还可以为leaveEditorMessage命令(或workbench.action.closeMessages在较旧的 VS Code 版本上)配置自定义键绑定。这是默认的键绑定:

{
  "key": "escape",
  "command": "leaveEditorMessage",
  "when": "messageVisible"
}
Run Code Online (Sandbox Code Playgroud)

  • vim 插件捕获 `esc`。 (10认同)
  • 不过我的是 <kbd>shift+esc</kbd>。 (4认同)