Hi I am still new to both Visual Studio and Unreal Engine4 so this may just be something trivial that I have missed, I am not even sure if this is a VS problem or UE problem to be honest, any help / clues would be appreciated…
Recently I started a project just for experiment and things from the Top Down template, created a few classes to test things with then I found the need to better organize my codes. Previously all my header and cpp files just scatter in the Source/ProjectName folder (the default behaviour) so as the very first step I began to re-arrange my header and cpp files into Public and Private sub folders as read in other threads in the forum.
Now after some struggle I have got the project to compile successfully and runs same as before the re-arrangement. However, all my includes in the cpp files are highlighted with the Cannot open source file error in Visual Studio and so the whole file are red under-lined (autocomplete also stops functioning as a result).
Strange enough, if in the cpp files I change #Include ProjectName.h to #Include Public/ProjectName.h, all errors and highlights are gone except for constructors, they are still highlighted (autocomplete still does not work except for general syntax keywords).
Does anyone know what went wrong / what steps I missed?