Why is Unreal freezing when compiling?

I just installed VS 2019. When I click on add a new C++ file while compiling it freezes at 86%. I tried to do a work around where I went directly to VS, and created C++ files there. But, VS is not recognizing some files which are specific to Unreal.

So, I’m stuck. How do I get Unreal to quit freezing while compiling or what is a work around to this issue?

Try turning off Automatically Compile Newly Added C++ Classes in Editor preferences, then add your classes. After all classes has been added, go to File → “Refresh Visual studio project”.

This will allow you to compile from Visual Studio.

1 Like

It is working for me, thanks