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:

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.