[GAS] Why doesn't my AttributeSet compile?

I just started to study GAS, and could not even start normally.
I have a completely empty project (third person template) and one c++ class (MyAttributeSet).

I am trying to compile this, but already here I am getting 14000 errors. And sometimes the errors change to others, but the code remains the same. The problem is specifically in the last line, but that doesn’t explain the reason.

Please explain why this is happening. I very rarely use C++ within the engine, I have no experience with it.

And if you know a simple GAS tutorial for complete beginners, I would be grateful for the link.

Hi,

Could you include some information about the errors you are getting? I know you say that its 14000 errors and that they change per recompile, but some information would be useful to get started debugging your issue.

Comparing my attribute set code with yours, I also include AbilitySystemComponent.h. Here are my includes:

#include "CoreMinimal.h"
#include "AttributeSet.h"
#include "AbilitySystemComponent.h"
#include "HeroCharacterAttributes.generated.h"

This already solved my problem. Ahaha… so dumb

May I ask an additional question? My Visual Studio is so slow with Unreal Engine that it doesn’t support syntax and doesn’t prompt any code, any errors, any libraries at all. I write as if in a notepad. How can this be fixed?
CPU - intel i7 6700k; SSD

I suggest watching this video:

And read this documentation: Setting Up Visual Studio for Unreal Engine | Unreal Engine Documentation

My guess is that you need to download the Game Development with C++ workload under the visual studio installer, but I could be wrong.