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

前端 未结 8 1575
轻奢々
轻奢々 2020-12-24 00:03

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 Res

相关标签:
8条回答
  • 2020-12-24 00:52

    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

    0 讨论(0)
  • 2020-12-24 00:58

    By default, the command File.CloseAllButThis does not have a keyboard binding. You can set one up yourself though, as shown here:

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


    I close all documents using ALT + W + L.

    This is available in Visual Studio without any special plugins or configuration. It just uses the tool bar mnemonics. The corresponding command is Window.CloseAllDocuments in case you wish to bind it to something else.

    0 讨论(0)
提交回复
热议问题