UE4 keeps deleting new C++ files in my custom plugin folder

Hey guys,
Im working on a UE4 project for university and for that I also have to create an editor plugin.
I now face the problem, that no matter what I do, UE4 deletes new C++ and Header files in the plugins source folder when I refresh the Visual Studio project.

I already tried build in Visual Studio and Generate Visual Studio Project Files.

Unfortunately I have not found anything about that particular occurance.
Maybe someone has a solution for this.

(Also the plugin files do not show in the Content Browser, even though I enabled show plugin files. The plugins content folder is showing though)

Best regards

The solution file may show the files under Source/Private & Source/Public, but the actual files themselves are stored in the Intermediate directory.

Add C++ files in unreal’s editor, or manually in the correct directories, then generate project files. Don’t add them using VS.

Thanks, that worked!