here is a way to do it:
1-Close Visual Studio
2-Go to your plugin classes folder
3-Add 2 empty files TestActor.h and TestActor.cpp
4-Then , "Generate Visual Studio Project
5-Open Visual Studio , then the files created
TestActor.h
#pragma once
#include "GameFramework/Actor.h"
#include "TestActor.generated.h"
UCLASS()
class ATestActor : public AActor
{
GENERATED_UCLASS_BODY()
};
TestActor.cpp
#include "MyPluginPCH.h"
#include "TestActor.h"
ATestActor::ATestActor(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
}
PS : No class constructor in the header needed