New UE5 c++ project cannot find header files and open source file in visual studio 2019

To fix for me, in the UE Editor, with Visual studio closed.

Select Tools-> New C++ class,
select public , All classes → Object.
Called it temp as I am going to delete later.
Create the class and select to open in Visual Studio.
On opening it then popped up about linking in other projects, and solution to link the UE source projects and then find the generated Character and Game mode headers.
Closed everything and repoened just to be sure and still picked up everything.
[/quote]

This fixed mine too! I didn’t get a message about linking, but it asked to reload everything and that seems to have corrected this issue.

I was just trying to follow the basic networking tutorial but use 5.5… It’s been like 8 hours of work to get a new project to work in Visual Studio Community 2022. What a PITA.