简体   繁体   中英

Is there a way to load .h file for current .cpp file in Visual Studio 2019?

I have been developing in Visual Studio 2005 for ages, finally bit the bullet and moved to Visual Studio 2019. In VS2005 I have a macro that loads.h file for current.cpp file when I press Ctrl+H. I understand that macros are not supported in 2019 internally and that there are plugins that enable them, but they lack macro editor. Is there any way to achieve the same functionality I had in VS2019?

No macro nor plugin is needed. Just rightclick the editing pane within Visual Studio 2019 (while editing your .cpp source file), and select Toggle Header/Code File from the popup menu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM