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

后端 未结 5 1953
萌比男神i
萌比男神i 2021-01-05 02:16

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 actu

相关标签:
5条回答
  • 2021-01-05 02:22

    In Visual Studio 2013 it was added as Ctrl + K, Ctrl + O

    0 讨论(0)
  • 2021-01-05 02:24

    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

    0 讨论(0)
  • 2021-01-05 02:30

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

    0 讨论(0)
  • 2021-01-05 02:38

    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...
    0 讨论(0)
  • 2021-01-05 02:39

    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

    0 讨论(0)
提交回复
热议问题