Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 401
resting Avatar asked Jun 11 '17 16:06

resting


People also ask

How do I turn off VS Code on Mac?

How do I do it with a keyboard shortcut? Cmd+W closes the current tab (which I don't want), Cmd+Q quits Vscode completely (which I don't want either), closing all windows.

How do you close a project code in Visual Studio?

Just like Close Folder when a single folder is open in VS Code, there is a Close Workspace (Ctrl+K F) command to close the active Workspace.


2 Answers

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"
}
like image 129
Matt Bierner Avatar answered Sep 21 '22 08:09

Matt Bierner


Updated, as of Jan 2020:

{
    "key": "shift+escape",
    "command": "notifications.clearAll"
}
like image 31
Maximilian Avatar answered Sep 17 '22 08:09

Maximilian