resting
resting

Reputation: 17467

What's the shortcut to close vscode's message box?

enter image description here

Is there a shortcut to close the message box shown in the screenshot?

Upvotes: 13

Views: 4205

Answers (2)

Maximilian
Maximilian

Reputation: 8530

Updated, as of Jan 2020:

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

Upvotes: 14

Matt Bierner
Matt Bierner

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

Related Questions