Hey Everyone,
I made a new C++ project in unreal 4.27 and noticed that I can no longer make C++ classes on the Content folder and I need to make it on the C++ classes folder but When I made one class and wanted to delete it it was not possible I also tried to rename it but it alse did not worked so how do I rename a C++ class from The C++ classes folder?
You cant rename C++ classes in the Unreal Editor, you got to do it through VS or the explorer.
- In file explorer, edit file name.
- In file explorer, right-click on your UProject file and click “Generate Visual Studio Project Files”
- Open VS and re-name your generated.h file, includes, etc, to match the new file name.
thanks for the information 
Did it and it doesn’t worked
It messed a test project luckly
Worked like a charm, thank you!
Hi there, since in 2026 this is still the first page that pops out when looking how to rename c++ classes, I want to add a more specific solution that works in 5.6, if you’re using Rider as your IDE.
Just edit the .h file for the class and rename it. Rider will automatically refactor all of the code, including the class name and .cpp file name, it will also ask you if you want to add a specific line to the DefaultEngine.ini file to notify the Unreal Editor that any derived classes (especially blueprints) need to update their parent refs, you should absolutely let it do this unless you want all your blueprints to get scrambled.
In a specific case this method didn’t work, but I just renamed the .cpp file instead and THAT worked (but it left an old copy of the previous .h file I had to manually delete), figures.