UE 4.19 opens wrong version of Visual Studio [SOLVED]

Installed 4.19 , created new empty c++ project, double click on a class in editor - opens vs2015.
Source control is set to vs2017.
Restarting editor doesnt fix it

UPD:

i deleted the .vs folder and .sln , then in editor File > Generate vs 2017 project , now it opens correct version.

2 Likes

Was having the same issue with UE 4.22 and Visual Studio 2019. UE kept opening VS 2017. This exact solution solved my issue.

Within Unreal, you could go to edit > editor preferences > general > source code > source code editor: specify a specific source code editor version (i.e. Visual Studio 2019). Using the un-versioned “Visual Studio” should open the newest VS, though.

1 Like