I’ve created a new First Person C++ project and I’ve encountered an issue where the include files can’t be navigated to and are not in the source file Build system path. If I right-click an include file and say “open document (in this example) CoreMinimal.h” I get the following error:
I’ve tried adding the path that “CoreMinimal.h” is on to the projects Include Directories in it’s properties but with no success.
I’m not the most capable programmer so I’m hoping it’s some silly thing that I’ve overlooked but it is also not an issue I’ve ever encountered before and it is happening on every project even new ones which seems to suggest something in the Visual Studio environment.
Hi ruffhaus. It seems that something on Visual Studio is not setup correctly…
You do not need to add the path of any of source code of UE in the Include Directories in your project .cs file to be able to navigate with F12.
Some things you could try is:
Firstly you could try to clean the project (delete folders .vs, Binaries, DerivedDataCache, Intermediate, .sln etc.), and then right click on .uproject file and Generate Visual Studio project files. Watch the log there for any errors or warnings.
Secondly if this happens in every new project (or possibly existing) you create, I would suggest to check theSetting Up Visual Studio doc page