This is a feature I have grown accustomed to in Eclipse (alt-tab). Is there an equivalent in Visual C++?
Thanks!
This is a feature I have grown accustomed to in Eclipse (alt-tab). Is there an equivalent in Visual C++?
Thanks!
I'm a fan of Visual Assist for doing this. Its not cheap but it provides a lot more functionality than switching between header and source. I also use its open file in project and class browsing features a lot. Of course the macro is free...
There's also a macro listed on the Whole Tomato support forum which has a few more file mappings.
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.
Visual assist also does not support Visual studio express editions. So you are stuck with the macro if you are using that IDE>