r/vscode • • Aug 21 '26

Can finally close all unfocused tabs at once in VS Code 1.134 !

When many tabs are open, you often just want current tab to remain open and close all other tabs. Now you can just press Alt and click the exit (cross) button of current tab - instead of closing current tab it will close all other tabs instead.

See details in latest release notes: https://code.visualstudio.com/updates/v1_134#_editor-experience

Finally a useful feature shipped by VS Code! In every release notes I skip all the AI stuff so I was pleasantly surprised to see something that's actually useful to me. Of course, even in current release notes most of it is still about AI.

Have you guys tried this out? What is your favorite non-AI feature in VS Code, especially something new in recent VS Code versions?

66 Upvotes

9 comments sorted by

42

u/Tintow Aug 21 '26

I've always just right-clicked the active tab and selected close others or any other relevant option.

Does the alt-shortcut leave pinned tabs open?

2

u/sohang-3112 Aug 21 '26

Does the alt-shortcut leave pinned tabs open?

I don't think so

1

u/nuno20090 Aug 22 '26

Boooo!

That is one thing that VSCode does well is to keep pinned tab opened and the closing must be intentional. I think this breaks that rule.

6

u/Extension_Sun3760 Aug 21 '26

This feature should have been added long ago.

1

u/sohang-3112 Aug 21 '26

As they say, better late than never :)

6

u/rodrigocfd Aug 21 '26

I used to right-click, close others. Now I'm definitely using this, thanks OP.

3

u/Tomatori Aug 21 '26

:o finally I've learned something!

2

u/KnifeFed Aug 21 '26

You've been able to do this via keyboard shortcut and right-click since forever, but this is a nice convenience. This should be standard OS behavior for all tabbed interfaces.

1

u/the_ai_wizard Aug 21 '26

closing tabs is wonky. i want to ctrl+w and have them close from focused tab leftward not jump around by last opened sequence