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

后端 未结 16 910
长发绾君心
长发绾君心 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:30

    I don't see this answer here, but at least in Visual Studio 2012 (Express included!), you can just assign your own keyboard command to go to the header file (NOTE: Only goes one way -- you can't go back to the source file unfortunately...)

    1. Go to Tools/Options/Environment/Keyboard.
    2. Find the following command: EditorContextMenus.CodeWindow.GoToHeaderFile
    3. Assign whatever key combination you want (Alt-S works)
    4. Profit

    Not sure which versions of VS this works in, but it doesn't require any add-ins and seems to do the trick in at least one direction.

提交回复
热议问题