Can't include any .generated.h

I’ve alredy tried regenerating the solution from the UPROJECT file.
The.generated.h files are being created but my visual studio (Community 2017) is unable to find them as they are not in the same folder.

To include the AActor.generated.h I had to specify the path, that seems to solve the include problem.
However I can’t compile due to more .generated.h that couldn’t been included.

Here’s my code:

I’m using the following tutorial for UE4:
[link text][2]

It might be good to say I have both Visual Studio 2015 and 2017 since I need 2015 to use SFML.
I first installed Visual Studio 2015 and then 2017. (UE4 automatically opens 2017)
Also I’m on Windows 10 x64

You sure those are not IntelliSense errors? it may still build

It doens’t build. :c

There is currently a bug in 4.20 that causes intellisense to flag serveral engine files as errors.

Currently we’re waiting on hotfix 4.20.2 to fix it.
I asked a similar question here: https://answers.unrealengine.com/questions/813701/visual-studio-showing-almost-200-false-errors.html

I suspect that it wont compile because there are actual errors in your code. Scroll down to the bottom of the error list to identify them.

No actual errors in my code just a fresh class with a UStaticMeshComponent*
I’ll wait until hotfix then.

Could you already compile your project with the released version 4.20.2? I can’t. I don’t have any errors in my code. It’s just those .generated.h files not being found. And a file new from PlatformCrt.h.

I asked a similiar question here.