Is there a shortcut to move between header and source file in VC++?

后端 未结 16 896
长发绾君心
长发绾君心 2020-12-04 08:07

This is a feature I have grown accustomed to in Eclipse (Ctrl+Tab). Is there an equivalent in Visual C++?

相关标签:
16条回答
  • 2020-12-04 08:09

    If you position your mouse over a function declaration in the header and press F12, the cpp file will be opened at the definition of the cpp file... I use this feature extensively!

    0 讨论(0)
  • 2020-12-04 08:10

    Try Visual Assist, which sports this very feature (amongst others):

    http://www.wholetomato.com/

    The code browsing functionality -- of which the header/cpp swap is one part -- are really good.

    (I also really rated its intellisense and refactoring features, but not everybody I've spoken to has agreed with me.)

    EDIT: just remembered, the Nifty Solution Plugin also does this -- plus another handly Visual Assist-like thing, though nothing else -- and they're free:

    http://code.google.com/p/niftyplugins/

    (The guy's perforce plugin is great, too. Much better than the default VSSCC rubbish.)

    0 讨论(0)
  • 2020-12-04 08:17

    There's also a macro listed on the Whole Tomato support forum which has a few more file mappings.

    0 讨论(0)
  • 2020-12-04 08:21

    In Visual Studio 2008 it's Alt + O.

    0 讨论(0)
  • 2020-12-04 08:26

    Visual assist also does not support Visual studio express editions. So you are stuck with the macro if you are using that IDE>

    0 讨论(0)
  • 2020-12-04 08:26

    In Visual Studio 2013 it's ALT + O

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