Refreshing project files

Hey guys,

I have started to learn UE4 with C++. The thing is, I keep having repetitive, continuous crashes and impairing bugs whenever I make a file change to the project I’m using. This includes most notably renaming C++ folders.

The issue

I tried to rename a C++ folder, but when I do it from within Visual studio 2015 -since for some obscure reasons you can’t do it from within UE4-, the content browser doesn’t get updated correctly and still display the old name, whether I try to update the Visual studio project (right-click on UProject->“generate visual studio project files”) or not. This gives me also the same result when updating from the Windows explorer.

I also updated the #include files to avoid compile errors. However, I then keep crashing while loading the project, which in turns forces me to remove the files #including the folder to make it open again.

##The questions
Coming from the Unity editor, I was expecting to be updating things more manually, which can be a good thing when projects get much bigger and reload times longer. But how do I update properly a UE4 project?

Also, how do you rename a C++ folder? This is some very basic action, and I can’t find anywhere on how to do it :'(.

Finally, when the project crashes on load like it did on mine, what is the process for cleaning it up to give it a fresh start? On Unity there’s a Temp folder (among others) to delete if editor’s file automation get awry. What is the equivalent of UE4?

Thanks for answering the biggest obstacle I am facing with this engine ;).

Whenever you do something like changing the name of a folder or deleting a c++ class, generate project files, then open the visual studio solution, then build the project through Visual Studio (F5). See if that works.

Thanks, I will try this right now.

The renaming part seems to have worked, didn’t try to remove a C++ class (yet :p). I thought that the relationship between UE4 and VS was more hierarchical, with UE4 on top and refreshing itself the project structure. Well, as long as I can rename/delete freely something in my project, I can get around crash issues by rolling back to an old version on the source control.