Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close all open tabs Visual Studio (VS) Code?

I am trying to close all the open tabs in Visual Studio code. I could only find search results for the Visual Studio IDE but not code.

like image 635
axelmukwena Avatar asked Mar 24 '26 20:03

axelmukwena


1 Answers

For VS Code, When you right-click on any tab, you get a Close All tabs option. Just click that. You can also use the shortcut below:

MacOS: command + K + W

Windows: Ctrl + K + W

To close one tab, just the usual:

MacOS: command + W

Windows: Ctrl + W


References: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

like image 199
axelmukwena Avatar answered Mar 28 '26 03:03

axelmukwena



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!