.cpp file missing in editor

Right click the .uproject and select “Generate Visual Studio Project files”.

See if that helps.

If you add any code from outside of the editor, you will need to generate the visual studio project files in order for the project to know of them.