Unreal Engine 4 Intellisense for Visual Studios 2015

I have visual studios 2015 community installed and the engine is up and running just fine except there’s constant red lines stating that it does not identify many unreal engine 4 statements such as GENERATE_BODY(), UCLASS(), ext ext.

I installed unreal engine 4 for another computer which then prompted me to install VS 2015 and that machine did have proper recognition of the UE4 commands.

How can I update my visual studios intellisense to recognize UE4 statements, macros, functions, ext

Hello,

Here is a link to the documentation regarding setting up Visual Studio for use with the engine: https://docs.unrealengine.com/latest/INT/Programming/Development/VisualStudioSetup/index.html
I’d recommend taking a look at that, as it has some valuable information regarding how Intellisense works with the engine.

Hi Sean,

I’m using UE 4.11 & VS2015 Enterprise. I followed the guide in your link, but still the same. IntelliSense still screw up by not recognizing UE4 statements and macros and others. It still gives red underline, but when compiled, there’s no error & the game runs smoothly. Unfortunately, the documentation in that also mentioned that it is an undeniable fact.

So the big question is, why won’t UE4 start focusing on this IntelliSense thing in the future? It’s disturbing to see “false positive” reports. And perhaps most of the UE4 developers around the world will be grateful if it is solved soon.

Hello,

IntelliSense is owned by Microsoft, which means that this is something that could be on their end to fix.

Typically, we use Visual Assist instead, which is a great alternative. Also, you can consider disabling IntelliSense if the false positives are hindering your work or causing you any unnecessary frustration.

Let me know if you have any further questions.

Have a great day

This is an ongoing issue - I’ve found closing Visual Studio and re-generating project files fixes it, something I have to re-remember every time I stop using UE4 for a period of time.

EDIT:

Thought I would add that you can include the UnrealVS tool (UnrealVS Extension | Unreal Engine Documentation) to Visual Studio and set the ‘Build Startup Project’ to show in the toolbar. Using this compiles your code, updates the editor and generates project files for you, which should fix the issue most of the time (otherwise restarting Visual Studio afterwards will).

Note that your classes need to actually compile for it to generate the needed project files.

Even though this is an old post the correct and working solution is to disable or set to “suggestion” “Macros in skipped browsing region”

Tools > Options Text Editor > C/C++ > View > Macros in skipped browsing region. set to suggestion

For more information read this article: