Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I set a "File > Exit" keyboard shortcut in VS Code?

Often in my daily work I have many projects open in different instances of VS Code.

And I often find myself quitting using mouse and "File > Exit" to get all the windows back as soon as I reopen it tomorrow.

I can't find a way to add a keyboard shortcut for "File > Exit". It's possible?

Any other suggestion to avoid mouse-ing around?

like image 665
Fred Hors Avatar asked Oct 24 '25 11:10

Fred Hors


1 Answers

Look for the command workbench.action.quit I think it is what you want.

{
    "key": "alt+q",                      //  or whatever keybinding you want
    "command": "workbench.action.quit"
}
like image 56
Mark Avatar answered Oct 27 '25 04:10

Mark