I’m still using an older version of Unreal on a custom built version (4.16.1), but the way I’ve been able to workaround this (somewhat) is the following:
- Open up my Unreal project
- Click on a C++ file to open Visual Studio
- Wait a moment, then close Unreal
- Leaving the Visual Studio instance opened earlier open, reopen your Unreal project
- Click on a C++ file in Unreal. You should see that it went straight to the earlier opened instance and the two are on the same page (finally!)