Unable to add AIController class

Hello. I added several classes using “Add code” wizard but i cant do it with AIController. I still can add for example pawn classes, but not the AIController.

Thats the screenshot after using wizard

The file appears in visual studio, but it gives compile error:

Huh i solved the issue by adding “AIModule” to build.cs. But why isnt it added automatically?

I guess it’s because they don’t want to clutter your project with files you don’t need. If you have source code access, you can check UnrealEngine/Engine/Source/Runtime - it got quite some subfolders which could be imported by you.