How to generate fileName.generate.h

Hi.
I am not good with english, so try ask as simple as i can.

How to generate fileName.generate.h. I found many post about that but, but still i can’t do this.

steps what i am doing:

  1. in UE4 editor create new c++ class, inherit none

  2. add UCLASS() adnotation before/above keyword class

  3. save, close evrything, click right mouse buton on .uproject file and press generate visual studio project files

and its not working. i try add #include fileName.generate.h befeore i press generate visual studio project files, and after too. Also try delete folders like .vs, binaries, intermediate before generate project files, but nothing work

pls help with this.

You may want to include what error message you’re getting. There’s likely some error in your code somewhere which is unrelated to this.

After generate visual studio project files, and try to open .uproject ther is a error, can’t compile, try from source manualy. and Visual show something like data, link to screen

remove this on #include nad Uclass() and evrything works

*.generated.h are files generated by UnrealHeaderTool and it runs during code compilation, so ignore InteliSense error and just build the code, Due to some unconventional C++ hackery used in UE4 InteliSense is confused all the time, you should not take InteliSense error with grain of salt and if something looks ok to you, just try to build it, you should not suggest yourself with Error List too and relay Output tab, original guidelines even been suggesting to disable that tab as it was misleading.

ok, i fix some errors, like class prefix must be A for actor or U … , but i dont know what to do with this two.
Link: Screenshot - b91c10ffd7e0152282534dbf49845778 - Gyazo

any one know how to fix it?

anyone? anyone?