Consider the following window setup:
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:
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.
When using Visual Studio Code on Windows, you can use CTRL + PAGE_UP to switch to the previous tab, and CTRL + PAGE_DN to switch to the next tab. You also have the ability to switch to tabs based on their (non-zero relative) index. You can do so, by pressing and holding ALT , followed by a number (1 through 9).
In VSCode it's possible to reorder/move the select tab with a keyboard shortcut ( workbench. action. moveEditorLeftInGroup ).
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 groupTools.NavigateTabGroups.Previous
(CTRL+SHIFT+Left
) to move to the previous groupThere are six commands altogether (all of which can be assigned shortcuts):
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.
Download VSStreamliner.
Edit the extension's version to match your version of Visual Studio, as described here.
Install the version-hacked extension. This provides commands Window.NextDocumentUp, Window.NextDocumentDown, Window.NextDocumentLeft
and Window.NextDocumentRight
.
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.]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With