简体   繁体   中英

Visual Studio move code window from one side to the other

Usually, in VS 2015 I split my workspace in 2 windows, having side by side 2 files of code. Often want to move one code window to the other side. What I do is drag the window tab with the mouse from one side to the other. This is slower than if there was a shortcut to do it.

Is there a shortcut in VS 2015 to move code windows to next/previous code window?

If you right-click the file tab, there are options for "Move to Next Tab Group" and "Move to Previous Tab Group". This cuts it down to 2 clicks instead of a drag operation.

Then, you can go into Tools->Options->Environment->Keyboard and assign shortcut keys to both operations. They are listed as the commands Window.MoveToNextTabGroup and Window.MoveToPreviousTabGroup .

Unfortunately, there does not appear to be an option to cycle the tab between groups. So, if you move a tab to "Next", you can't move "Next" again to get it back to group 1, you have to move "Previous".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM