UE5.6.1 VS 2022 November 2025: IntelliSense breaks in child folders

Hello there!

In my UE 5.6.1 project IntelliSense gives false information for files that are not the direct children of \Source\, but it works more or less okay for files that are right under Source\\ - “more or less” meaning that I don’t get red squiggles in the whole ■■■■ file for no reason…

So when I ran into the problem I created a C++ class from the Unreal Editor following this tutorial under \Source\\Data - in my project I started from an empty template not the 1st person one, if that changes anything, but I don’t think it should.

In the file ItemData.h the first include is #include “CoreMinimal.h” which gives me the following error:

image

Of course, the porject builds without any issue.

Also, as I said above, the files under \Source\ don’t have this problem.

I’d really appreciate if someone could help me out with this, because I don’t even understand how should VS know about the include path, since I don’t see it under the VS project’s VC++ Directiories → Inlcude Directories - but adding a bunch of folders to it (the CoreMinimal.h, ObjectMacros.h - I need this one because otherwise the UENUM macro is not recognized -, Engine/DataTable.h and the .generated.h are located) maces everything work almost good - GENERATED_BODY still comes up with a this declaration doesn’t have a storage class or type specifier, but whatever, at least the rest of the files is squiggle-free. Although I’m pretty certain this is not something I should have done manually…

Thanks in advance!

Update: Okay, adding #include ObjectMacros.hand it’s location to the include directories solves the intellisense issues, but break compilation.

Okay, seems to be solved, but I would wait a bit still before marking it so, because sometimes VS still decides it won’t cooperate.

So what I did: I decided to just follow along the tutorial without resolving the IntelliSense issues, because chat GPT suggested, that the problem might be caused by the header file - where IntelliSense was messed up - wasn’t referenced anywhere - mind you I removed the generated cpp file for the given class as per:

  1. Delete all text in ItemData.cpp, then save and close the file. You won’t be using it.

yeah, perhaps if I wouldn’t have deleted the WHOLE FILE I wouldn’t have had any problems.
So I went and:

  1. created the DataAsset class, which includes the ItemData header,
  2. rebuilt the solution,
  3. closed VS and reopened it and IntelliSense started working.

Hope this actually resolved the issue long term and I’m not seeing just some early Christmas miracle.

I’ll work on the project and I’ll mark this as solved if the problem is gone for good.

Update: After deleting the whole solution and Intermediate, Cache and Binaries related folders and regenerating the project IntelliSense still works, so I’m marking this as Solved.