Why if i move, change or delete some of my #include i get errors?

It’s not a real error, it’s an intellisense error. If you attempt to compile your project, the project will compile fine. Once the project is recompiled, the “error” should go away. It occurs when you change any of the lines in a header file above the .generated include line. It appears over the UCLASS and the class keyword.

It’s annoying but it’s something you either have to deal with or turn intellisense off.

NB. Just in case, there was one chap on the forums that had it manifest as an actual compile error. I’ve linked the post and how it was resolved. link text

// Fill out your copyright notice in the Description page of Project Settings.

#include "Engine.h"
#include "Engine/StaticMeshActor.h"
#include "FloatingActor.generated.h"

UCLASS()
class MYPROJECT_API AFloatingActor : public AActor
{
	GENERATED_BODY()
public:	
	// Sets default values for this actor's properties
	AFloatingActor(const FObjectInitializer& objectInitializer);
	
protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;
	float RunningTime;
	FVector Position;
private:
	USphereComponent *collision;
	
};

This is my super basic code, it really does nothing special and is not what important here. If i, let’s say, delete line 4 (which is empty) i get errors. I know it makes no sense and i’ve never experienced this before but how can i sort this out?
Like in UCLASS() i get “This declaration has no storage class or type identifier”

Thank you very much, i should’ve just pressed compile, sorry for the dumb question