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

Does anyone know a keyboard shortcut to close all tabs except the current one in Visual Studio? And while we are on it, a shortcut to close all tabs? Is there a Resharper option for this? I looked into the past and could never find it.

+68
visual-studio resharper
Sep 18 '08 at 21:40
source share
8 answers

I don’t think there is one by default, but you can go to Tools> Options> Environment> Keyboard and associate the key with File.CloseAllButThis.

I am using ctrl + alt + w

+86
Sep 18 '08 at 21:41
source share
β€” -

By default, the File.CloseAllButThis command File.CloseAllButThis not have a keyboard binding. You can configure it yourself as shown below:

j3ueK.png

In this example, I'm going to map CTRL + SHIFT + ALT + W to File.CloseAllButThis in the global area. You can set the scope for a text editor only.




I close all documents using ALT + W + L.

This is available in Visual Studio without any special plugins or configuration. It just uses toolbar mnemonics. The corresponding Window.CloseAllDocuments command in case you want to associate it with something else.

+48
Oct. 13 '08 at 10:36
source share

Quick Answer: ALT + - + A

Tested on Visual Studio 2013. In the window that you want to save, press ALT + - , this will open a window in the upper left menu, and then press A to close all windows except the current one.

+31
Jul 22 '14 at 19:52
source share

By default, there is no keyboard shortcut, but you can bind it to the keyboard shortcut in the general environment settings (Options-> Environment-> Keyboard), the command is File.CloseAllButThis.

+10
Sep 18 '08 at 21:47
source share

If you use "Close everything except this" too often, you can also try "Tools \ Options \ Environment \ Documents" \ [x] Reuse the current document window if it is saved. In combination with ReSharper Recent Edits (ctrl- or ctrl-e depending on the keyboard layout), you can avoid too many open documents all the time and quickly move between recently opened ones.

+4
Sep 19 '08 at 7:56
source share

Sara Ford has a lot of tips like these in Visual Studio

Here is one that refers to what aaronjensen said about File.CloseAllButThis:

http://blogs.msdn.com/saraford/archive/2008/01/08/did-you-know-you-can-close-all-but-this-on-files-in-the-file-tab- channel.aspx

+2
Sep 18 '08 at 21:49
source share

To close all documents:

Tools-> Settings ...-> Keyboard ..-> for the environment> Keyboard

There I displayed the Window.CloseAllDocuments command for Alt + Ctrl + F4

+2
Jul 08 '10 at 11:05
source share

I follow the aarojensen method , but put it in the file menu (right-click on the menu and select the setting). Then Alt-FB closes everything except the current.

0
Sep 18 '08 at 22:38
source share



All Articles