11

I have both VS2015 and VS2017. When I choose "Open in Visual Studio" on GitHub I'd like to change it to use VS2017 instead of VS2015.

How can I do this?

Hezi
  • 496
  • 6
  • 15
Don Box
  • 3,166
  • 3
  • 26
  • 55

3 Answers3

13

Found the answer by a different question: Workaround for "Visual Studio Web Request handler could not be found" when using github?

The solution is easy: just reassign the default handler for the git-client protocol. To do that, press the Windows-Key, enter "default apps" and select the settings page. Go down, select "Choose default apps by protocol" and look for "git-client". Click and select the Microsoft Visual Studio Web Protocol Handler Selector for VS2017.

Don Box
  • 3,166
  • 3
  • 26
  • 55
9

In Windows 10 / Windows 11:

  1. Click Windows Start Button
  2. Start Typing 'Default apps'
  3. Choose "Default apps'
  4. Select "Choose default apps by protocol"
  5. Find the protocol for the GIT_CLIENT, VSTFS and VSWEB protocols, and select the default application.

NOTE: In step #5, if you have both VS2017 and VS2019 installed, then you will see two identical items named "Microsoft Visual Studio Web Protocol Handler Selector". But they are different: the first is for VS2017, the second is for 2019.

Henrik Høyer
  • 1,225
  • 1
  • 19
  • 27
4
  1. Click Windows Start Button
  2. Start Typing 'Default Programs'
  3. Select 'Default Programs'
  4. Click 'Set your default programs'
  5. Select Visual Studio 2017 from program list
  6. Click 'Choose defaults for this program'
  7. To load the desired version of Visual Studio, Check the box by Web Protocol Handler
  8. Click Save Button

Note: If you are switching over and want all functionality to default to VS2017 (or whatever version) just select the 'Set this program as default' as an alternative for step 6.

Screenshot of where the option is located in Windows 7

mate00
  • 2,727
  • 5
  • 26
  • 34
Derek G.
  • 41
  • 2
  • 2
    You can also do this in the new settings app in Win10. In my case, since I could see which handler corresponded to 2019, I just tried each one until it worked. Glad to know! – Nicholas Miller Nov 07 '19 at 21:46