Keyboard shortcut to close all tabs but current one in Visual Studio?

Ted picture Ted · Sep 18, 2008 · Viewed 29.3k times · Source

Does anyone know a keyboard shortcut to close all tabs except for the current one in Visual Studio? And while we're at it, the shortcut for closing all tabs? Is there a Resharper option for this? I've looked in the past and have never been able to find it.

Answer

Aaron Jensen picture Aaron Jensen · Sep 18, 2008

I don't think there is one by default, but you can go to Tools>Options>Environment>Keyboard and bind a key to File.CloseAllButThis.

I use ctrl+alt+w