Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to close all tabs but pinned in Visual Studio?

If there are any ability to close all tabs except pinned in VS?

like image 387
jk1 Avatar asked Oct 24 '12 04:10

jk1


People also ask

How do I close all open functions in Visual Studio?

CTRL + M + O will collapse all.


2 Answers

Yes, bind a key to the OtherContextMenus.EasyMDIToolWindow.CloseAllButPinned command.

Tools > Options > Keyboard > bind the key using the interface.

enter image description here

like image 173
NightShovel Avatar answered Oct 14 '22 08:10

NightShovel


You can use Alt + - to open the context menu for the active tab. Once you have the context menu open, you can use the arrow keys to select e.g. Close All But Pinned.

Some options on the context menu have underscores for faster access, such as e.g. Close All But This, which can be accessed with a, so that the entire sequence for Close All But This becomes Alt + -, a.

like image 23
Mark Seemann Avatar answered Oct 14 '22 08:10

Mark Seemann