David Miani
David Miani

Reputation: 14668

How can I switch to a different tab group using the keyboard in visual studio 2013

Consider the following window setup:

Window with 2 tag groups

Currently there are two tab groups open. The left tab group is active (with the ListingDetailsDTO.cs window active).

I would now like to switch to the right tab group, so visual studio will appear like this:

Right tab group active

This is easily possible using the mouse (ie just left click the right window). However I cannot figure out how to do it with the keyboard alone. Assigning a shortcut to Window -> Move to next tab group came closest, but it also moves the current window to the next tab group, which isn't what I wanted. I thought Window.NextPane, or Window.NextSubpane might work, but they didn't.

Is there a way to do what I want? I am happy to install (preferably) free extensions to make this possible if necessary.

Upvotes: 28

Views: 8328

Answers (5)

prf
prf

Reputation: 99

UPDATE 08/07/2024

Since Microsoft broken a feature described below, this answer is no longer valid


In Visual Studio 2022 it is still not available, but I can provide some workaround. If you are in file A in group Tab G1 and then you go to file B in group Tab G2, now you should be allowed to switch between those two files with just ctrl + r, ctrl + e (Go to recent files) + enter

If you are in file A and you open file C in group Tab G1, now you cannot just use above method. However, you can still use shortcut ctrl + r, ctrl + e and file B should be on second position in "recent files" list. So you need to go down one position and you can hit enter to visit file B

Upvotes: 0

group 1: Ctrl 1 group 2: Ctrl 2 ...

Group Left: Ctrl + K Ctrl + LeftArrow Group Right: Ctrl + K Ctrl + RightArrow

Upvotes: 0

zastrowm
zastrowm

Reputation: 8243

For Visual Studio 2017/2019, I created an open-source extension to do this:

It by default adds two keyboard shortcuts:

  • Tools.NavigateTabGroups.Next (CTRL+SHIFT+Right) to move to the next tab group
  • Tools.NavigateTabGroups.Previous (CTRL+SHIFT+Left) to move to the previous group

There are six commands altogether (all of which can be assigned shortcuts):

image showing all six commands from the tools menu

Upvotes: 27

dinosaur
dinosaur

Reputation: 3278

This is possible using the VSStreamliner extension. Only caveat is that the lastet version I know of is for VS2010. Fortunately, there's a hack-around -- I have gotten it to work with VS2015.

  1. Download VSStreamliner.

  2. Edit the extension's version to match your version of Visual Studio, as described here.

  3. Install the version-hacked extension. This provides commands Window.NextDocumentUp, Window.NextDocumentDown, Window.NextDocumentLeft and Window.NextDocumentRight.

  4. In VS, go to Tools -> Options -> Environment -> Keyboard, and set your desired keybindings to those commands. [Emacs users: For some reason "C-x o" didn't work. (Maybe VS doesn't like two-stroke bindings?), so I used "M-o" and "M-p" for NextDocumentDown and NextDocumentUp respectively.]

Upvotes: 5

Philip Pittle
Philip Pittle

Reputation: 12295

I can do this with Ctrl + Shift + Backspace.

I am not sure if this is because of an extension or is out-of-box behavior. I use ReSharper and Productivity Power Tools 2013 for productivity extensions so if it's not out-of-box, one of these did it.

Upvotes: -2

Related Questions