If I added code, either from the editor menu, or manually, it corrupts my code. Regardless of whether I use the refresh command or not. I then have to delete the new code, delete my Intermediate folder, and rebuild.
Edit: It seems after adding new code, I need to delete the intermediate folder, and then click “Refresh Visual Studio Code” for it to find the new folders/files. Is this the right procedure?
I added a blank character class, just as a test, and it compiles fine. However, if I go to my GameMode.cpp and change this line:
DefaultPawnClass = ANewCharacter::StaticClass();
It has a compile error saying that ANewCharacter isn’t recognized.