How to fully setup UE4 to work with VS2017?

How did you do the “Refresh Visual Studio Project” bit?