How to change default Visual Studio version

This is simple yet many developers face this problem. So thought to blog about it hoping that this will be helpful to someone.

Say you have multiple versions of Visual Studios’ installed in your system. Obviously, lastly installed version will be default one i.e., launched when you type ‘devenv’ in Run Command (Start -> Run -> Command). Here is a way to change it to version which you use most or want to be opened when you use devenv.

  1. Open Registry Editor  – Start -> Run -> Type ‘regedit’ (without quotes)
  2. Navigate to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows ->Currentversion -> App Paths -> devenv.exe
  3. Right-click on devenv.exe and click on Modify ( a dialog will be displayed where you can change the value of it)

Usually the value will be C:\Program Files (x86)\Microsoft Visual Studio x.x\Common7\IDE\devenv.exe

You have to replace that x.x to the version which you want.

Leave a Comment

Your email address will not be published. Required fields are marked *