How to set-up Resharper in Visual Studio for UE?

Hi guys,

so Resharper released an early preview of their plugin with C++ support and I wanted to try it out.
Basically, it seems to work as my tutorial project still builds and the code completion works way faster than IntelliSense now.

But Resharper displays lots of errors for unknown types and stuff, of course, because the engine header files do not seem to be included anywhere in the project and so their code inspector is left in the dark.

Is there a way to fix this so Resharper knows about all the UE classes and types? If so, how do I have to set my project (or Visual Studio) to accomplish this?!

Best regards,
zaha

As I understand, Epic uses Visual Assist X, so I guess they somehow set it up to work with UE. Can this also be applied to ReSharper?

VAX is very different from Resharper. VAX has supported Unreal since the early UE3 days

I see. Hopefully, ReSharper can be used with UE somehow, too. It’s cheaper than VAX and I used it for C# already where it is a blessing. But as the C++ support is still in its infancy, I guess it might take awhile to figure it out.

Don’t get me wrong, I love JetBrains’ products. However, AppCode doesn’t handle the size of the engine well (I have a bug filed with them), so I am not surprised that the C++ version of Resharper would have issues with the code base. Hopefully, they’ll get it resolved and the AppCode issue I have reported.

Yeah, on the preview page for the C++ support they stated it will support code bases up to 40 MB before becoming very slow. But they aim to increase this size.

Before that, though, I need to tell ReSharper where to look for the Engine headers without haven the whole Code in Visual Studio so the Code Inspector knows the UE specific types.

I didn’t try it with the whole engine from GitHub yet, as I am just getting started with UE. I’m looking for a way to get it to work with my C++ Game Modules that magically knows about the UE engines’ headers. I guess the UBT takes care of resolving the includes?
So I need to somehow tell ReSharper to look at the same folder for the Engines’ headers to resolve the types. Is “\Epic Games\4.6\Engine\Intermediate\Build\Win64\Inc” the right folder to look for the headers used by UBT when compiling from Visual Studio?

Yep. You need to have it use the same headers UBT uses

JetBrains is aware of these issues, it’s in their bug tracker. Vote for fixes here: https://youtrack.jetbrains.com/issues/RSCPP?p=0&q=unreal+engine

I just installed Resharper C++ 1.2 from the early access program ( https://confluence.jetbrains.com/display/ReSharper/ReSharper+10+EAP) which their bug tool claims to have some fixes for, but it is still not in tip top shape. I’d recommend going to the issues site there and voting for fixes - their products are generally great and it’d be nice to see it work better with Unreal.

Great to know, I voted to fix these issues. Thank you! :slight_smile: