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

Was it helpful?

Solution

Perhaps one (or a combination) of the following will help you:

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top