Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close Vscode window without closing all tabs in macOS

I switch between many projects, all having triple panes and many tabs open. When I'm not working on a project I close the window using the GUI by the normal red close window button. When I open it again all my tabs are as I've left.

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 I close a single Vscode window with keyboard, identical to hitting the close button with mouse, so that when I reopen the window in the future all my tabs are intact?

like image 574
Can Poyrazoğlu Avatar asked Dec 30 '25 07:12

Can Poyrazoğlu


1 Answers

Mac:

Cmd + Shift + W

Windows:

Ctrl + W

like image 134
Can Poyrazoğlu Avatar answered Jan 01 '26 05:01

Can Poyrazoğlu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!