'variable FString is not a type name' in HiddenWordList.h (VS2019)

OK, I think I’ve sorted the issue with the HiddenWordList.h file now. For some reason, when I right click a folder in Visual Studio and choose Add New Item..., the default location was set to Intermediate/ProjectFiles for whatever reason. I obviously didn’t notice this when I first added the file and the solution explorer was showing it in the Source/BullCowGame folder so it looked like it was in the correct location - it wasn’t! I just deleted and re-added it in the correct folder and it seems to be building and compiling successfully now.

Interestingly though, despite the fact that it builds successfully, I still get the red squiggly line under FString with the same error about it being a variable but not a valid type… Is this just VS being weird?

image