I started using a specific workflow whenever I changed anything above the class definition in my .h or .cpp files:
- Before changing anything, make sure it compiles.
- Make the change.
- Save.
- Close VS
- Open the .uproject file
- Compile in the editor
- “Refresh visual studio project” in the editor
- “open VS” in the editor