Until Epic fixes it, what you need to do is: every time you create a new C++ class using Unreal, you should close all visual studio instances. Unfortunately, it is a bug… Good news is that you will not be doing that may times. In fact, you can create all necessary source code files outside of Unreal Editor and after you done, just recreate your solution file.