Reputation: 17467
Is there a shortcut to close the message box shown in the screenshot?
Upvotes: 13
Views: 4205
Reputation: 8530
Updated, as of Jan 2020:
{
"key": "shift+escape",
"command": "notifications.clearAll"
}
Upvotes: 14
Reputation: 65593
esc should dismiss all visible messages.
You can also configure a custom keybinding for the leaveEditorMessage
command (or workbench.action.closeMessages
on older VS Code versions). Here's the default keybinding:
{
"key": "escape",
"command": "leaveEditorMessage",
"when": "messageVisible"
}
Upvotes: 11