How do includes work && Auto Include via Visual Assist

When I create a new actor, add a member “USphereComponent* collisionComp;” I need to include the required header(s) first.

I have two questions:

1 (General) )
Why can I include “Components/SphereComponent.h”, and not “SphereComponent.h”?

2 (Visual Assist) )
If I want to let Visual Assist do an auto include, it correctly detects the header SphereComponent.h and suggests it to me. When I use the auto include it ONLY includes “SphereComponent.h”, which does not work.
It needs to be specified at least to the Components folder above the SphereComponent header file.
How do I configure Visual Assist to reliably use auto include?

The answer to your first question is because “C:\Program Files\Epic Games\UE_4.17\Engine\Source\Runtime\Engine\Classes” is in your game projects NMakeIncludeSearchPath, however, “C:\Program Files\Epic Games\UE_4.17\Engine\Source\Runtime\Engine\Classes\Components” is not. So, you need the extra qualifier “Components/”.

The second question is actually a bug in Visual Assist, and I don’t currently know of a work around. I was able to reproduce the issue, and have opened a case (111530) to get the issue fixed!

Thank you, this is everything I hoped for and more!