views:

19

answers:

4

When I am working on a project and compiling all the time, it gets very annoying having to select the code window with the mouse each time after compiling, is there a keyboard shortcut in visual studio to select the code window?

A: 

If you press Alt+W, then Visual Studio opens a list with open windows. You can then select the number corresponding to the window you want to activate. For example, Alt+W,1 activates the first window in the list.

Vagif Abilov
A: 

You can ctrl+tab to switch from one window to another within Visual Studio.

Jon B
I compile and then press ctrl+tab and I'm back in the code window. Not sure why this is downvoted.
Jon B
+1  A: 

Back when I used Visual Studio, the F4 key went to the next error location in the code and automatically selected the code window. Also try Esc. I think the "next error" keystroke is different in more current versions of VS, so use whatever your keyboard mapping offers.

Greg Hewgill
+1  A: 

Simply press Esc, that almost always gets you back to the code window.

stakx