How to create a blank header.h file for only USTRUCT and UENUM

I am new to unreal engine, with a little experience. I am using Unreal5.3.2 in Visual Studio2022 community. For this question I followed the Multiplayer Programming Quick Start Multiplayer Programming Quick Start for Unreal Engine . The process for following this tutorial went smoothly and I was able to replicate the expected end result of the tutorial.

However, I also tried following this tutorial in the same project as the Multiplayer Programming Quick Start https://www.youtube.com/watch?v=LlAzsB-I1_8&t=216s . The issue I am having is when I create a new .h file I cannot get the include “CoreMinimal.h”include, “Engine/DataTable.h”include , “ItemDataStructs.generated.h” to open their respective source files.

I understand the second tutorial is using Rider IDE, but I would assume their is a way to add a classless header file for just USTRUCT and UENUM usage. The reason I am not using the unreal create c++ class wizard is because I do not want the additional code that comes with empty class via unreal wizard.

When I use build->Build solution I get errors which I am trying to figure out how it relates to my header file not opening source files:

D:\UnrealEngine\UE_5.3\Engine\Plugins\ScriptPlugin\Source\ScriptGeneratorUbtPlugin\ScriptCodeGeneratorBase.cs(12,7,12,22): error CS0246: The type or namespace name ‘UnrealBuildTool’ could not be found (are you missing a using directive or an assembly reference?)

What I have Tried:

  • adding existing header item via vs2022
  • using file explorer and manually adding .h into source
  • after adding header file and include headers generate .uproject project files
  • ensuring this issue is not from Multiplayer Programming Quick Start tutorial

I have been researching and looking at many older forums, however I have came up with no solution so far. I will keep trying to figure this out, but any information and guidance is appreciated.

From what I have understood this is a visual studio / intellisense issue. After two fresh uninstall/installs of vs2022 with the correct workloads, I became frustrated. The only suggestion I can make and what I have done is use Jetbrain Rider ide. Rider is not free but if your like me you can get it for free as a highschool/college student. Using rider I had 0 issues, not only that but rider was a HUGE upgrade over vs2022 in autocomplete, intellisense, and build time. Adding header.h only files or even creating folders is possible through rider, so the issue I had in my questions is nonexistent.

I hate to not find a actual solution to my problem, but I will say rider will save time tremendously.