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

339 Views Asked by At

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?

1

There are 1 best solutions below

1
Cow Corporation On BEST ANSWER

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