[UE 5.1] VisualStudio 2022 Intellisense for engine files not working in UE5

Easiest fix, and worth trying first, is to download UE off Epic’s git hub and use source version of the engine. If intellisense doesn’t work, then in the cmd, instead of just running “GenerateProjectFile.bat” try “GenerateProjectFiles.bat -Engine”. Then check to see if Intellisense is working.

Good sir, I must cordially inform you that only part of your explanation
was correct. in UE5, you must go to Tools>-Refresh Visual Studio 2022 Project / Open Visual Studio 2022. I hope this helps clarify for any developers who are struggling to find these options.

Ja ne!

2 Likes

Thank you so much for writing this out, lifesaver! This also solved it for me :slight_smile:

2 Likes

Thank you! Worked for me

2 Likes

I had that issue with VSCode and the project_build.config file (don’t remember the exact name) but it was not including those files with the rest of target project files. I manually added the files like the other ones that were working and recompiled with success. I think the editor skipped them because your current project is not included, just a guess… I moved to Visual Studio 2022 and have not turned back – don’t forget to manually install the Visual Studios Intergration Tool manually from the Epic marketplace if your Unreal Engine version greater than 5.3.0.

wow such a simple yet effective solution :grin:

This also worked for me. In my case I uninstalled Visual Studio 2022, then installed a newer version of 2022 which had some new features, but this caused Unreal Engine Editor to lose track of what Visual Studio I had, and in Editor Preferences it was selected simply as Visual Studio and not Visual Studio 2022. Also in Tools dropdown, I didn’t had Refresh Visual Studio 2022 Project, but Generate project files or something like that, after choosing that the two Refresh Visual Studio 2022 Project and Open Visual Studio 2022 appeared.

Thanks for your suggestion!

1 Like

UE 5.4.2 (Built from Source) + Visual Studio 2022 (Version 17.10.4)

I know this horse has been beat to death at this point, BUT I did not find any of the above answers to work for me. I have Unreal version 5.4.2 built from source. For anyone struggling with IntelliSense issues from UE 5.4 built from source using Visual Studio 2022 (Version 17.10.4)…
I may have a solution for you.

The real reason why I had intellisense errors is because I did not use a flag when using the GenerateProjectFiles.bat. I just double clicked the bat file. However, there are flags you can pass into this batch file. Instead of double clicking, I HIGHLY suggest this instead:

.\GenerateProjectFiles.bat -2022

Once I regenerated the solution with that flag, all intellisense errors were gone. Likely because it defaulted to value that does not play nice with VS 2022.

1 Like

Thankyou!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.