Visual studio errors on new project

I’ve started a new project and installed visual studio as directed by the documentation. It compiles fine but it lists over a hundred errors. “Cannot open source file “something.generated.h”” type errors making up a large number. I’ve attached an image showing what’s been installed. I have visual assist x installed if that’s relevant.

I’m having the same issue.

Everything still compiles fine for me, and there are no issues during play, but it’s very frustrating to see the red lines everywhere and be told I have hundreds of errors.

I’m using Visual Assist with Visual Studio 2017, UE4.20.
I’ve started a new First Person c++ project, and get the errors in the new project.

I’ve tried (many times) creating new projects, rebuilding solution files, and the answer offered here, but nothing has yet worked.

Here’s a screenshot of some of the errors.

I’m not sure if it depends on the same error, but i work with Visual Code and got many path-related errors that because of wrong cpp_property settings.
Here you can find a fix for that. I’m not sure if you can follow it because it’s for Visual Code. But i hope it works for you to!