My workaround for this problem is a little unorthodox, but may help others, so I will share it.
I am using a list of windows . And I thought it would be annoying because of me it is, but I'm actually used to it. It continues to be used even in Visual Studio 2012, so I offer it as another alternative.
Once the .cpp and .h files are open, I switch between them like this ...
- To switch from .cpp to .h:
Alt+W, W, Down Arrow, Enter - To switch from .h to .cpp:
Alt+W, W, Up Arrow, Enter
In fact, you hold down the Alt key while pressing W second time, effectively doing this: Alt+W, Alt+W, Down Arrow, Enter (you don't need to release the Alt key until you type the arrow key)
This works because .cpp and .h files are usually alphabetically adjacent in the window list. It also works for .c and .h for the same reason. Gap: Alt+W goes to the "Window" menu, and the second W activates the window list view "Windows ...". The active window will be selected in the list, so pressing the up or down arrow will move to the document that is before or after the alphabet, which is almost always the corresponding .h / .cpp file.
As another alternative, I should also mention that if you put the .cpp and .h files next to each other on the window tabs, you can use: Ctrl+Alt+Page Up and Ctrl+Alt+Page Down to switch between adjacent tabs tabbed list.
I understand that you need to "prepare" by opening both documents, and this will be less than ideal, but as a rule, I have all the documents open, and I often use the Alt+W, W shortcut.
Wyck Jun 26 '13 at 3:42 on 2013-06-26 03:42
source share