This is a feature I have grown accustomed to in Eclipse (Ctrl+Tab). Is there an equivalent in Visual C++?
Try using Switch - it's an addin that lets you flick between source and header, code and designer, XAML and codebehind etc etc:
http://www.dwmkerr.com/switch/ or directly from Products and Extensions for Visual Studio
For Visual Studio 2013, as mentioned by others it's the command named:
EditorContextMenus.CodeWindow.ToggleHeaderCodeFile
and it has as default combination of keys: Ctrl+K,Ctrl+O, but it can be changed if you introduce the new combination of keys that you like in the
Press shortcut keys:
under
Tools -> Options -> Environment -> Keyboard.
So you can choose a custom keys combination as my favorite for .h to .cpp switch is Ctrl+Tab.
In Visual Studio 2008 and 2010, you can right click in your .cpp file and choose Go To Header File ... that will take you in one direction. For the other direction, if you right click something you're declaring in the header, and choose Go To Definition, that will take you in the other direction. You might have to go through an ambiguity resolution dialog if you choose the constructor, because the function name matches the class name, but if you choose anything else, you'll go straight where you want. I know this is a two-click approach, rather than one keystroke, but it does do what you want.
In Visual Studio 2013 a default keyboard shortcut for this is Ctrl+K, Ctrl+O