Visual Studio 2008 macro to switch between header and source files?
-
22-04-2021 - |
Question
Does anyone know how to make a macro or something to switch between foo.hpp and foo.cpp? I would really appreciate having a macro like this. I guess it would help if it actually opened the corresponding file, but kept the old one in a tab.
Thanks
Solution
Perhaps one (or a combination) of the following will help you:
- Switch between a Header and a CPP File in .NET (a macro at codeproject)
- Switch between header and impl files in VS.NET (describes how to create the macro and bind it to a key)
- Switch between Source and Header C++ Files (A recent macro from codeguru)
- Macro to Switch Between Header and CPP File (An old macro from codeguru)
- Several other solutions found on Google...
OTHER TIPS
Why not use right click > Go to declaration | Go to definition?
In Visual Studio 2013 it was added as Ctrl + K, Ctrl + O
Some of the options ran slow for me in large projects. This one doesn't look in other folders but works faster and should cover most needs: switch between .cpp & .h files
You could try using 'Switch' - this is an addin that switches between source and header files, but also lets you switch between other types of related files - XAML and codebehind, designer and code etc etc. Switch