Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 macro to switch between header and source files?

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

like image 808
rlbond Avatar asked Apr 01 '09 19:04

rlbond


2 Answers

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...
like image 90
Daniel LeCheminant Avatar answered Sep 21 '22 14:09

Daniel LeCheminant


Why not use right click > Go to declaration | Go to definition?

like image 39
dirkgently Avatar answered Sep 23 '22 14:09

dirkgently