You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @herboren, thanks for opening this. We'd be happy to add support for Visual Studio Community Edition. Is this something you would like to contribute?
Given that we haven't had support for VS "classic" before there might be some trickiness when it comes to actually launching it with a file or directory but the first step would be detecting it and seeing what works and what doesn't
I don't mind trying to get it to work. Is there some way to validate on my side if this works. I have already modified the code and on a fork, but have no way to compile or run the changes. I don't want to push the commit if I can't debug somehow 🤔
Implementing Visual Studio support required an unconventional approach since Visual Studio doesn't use a unique registry key like most other IDEs.
Thankfully as of Visual Studio 2017 v15.2, Microsoft includes a CLI tool called vswhere with the visual studio installer to help locate the install path of their IDE.
Unfortunately, since this is an external program, it is much slower than looking at the registry to find the install path.
Since currently available editors are calculated at startup, using vswhere could slow down the whole startup of GitHub desktop.
To use vswhere we first need to change the way available editors are loaded. Instead of loading them at run-time we should load them when needed as per this issue: #14666
Once the above issue is completed we could implement visual studio support using vswhere.
Activity
niik commentedon Sep 13, 2021
Hi @herboren, thanks for opening this. We'd be happy to add support for Visual Studio Community Edition. Is this something you would like to contribute?
Please see our documentation on adding editors for more details on how to go about doing that.
Given that we haven't had support for VS "classic" before there might be some trickiness when it comes to actually launching it with a file or directory but the first step would be detecting it and seeing what works and what doesn't
herboren commentedon Sep 14, 2021
I don't mind trying to get it to work. Is there some way to validate on my side if this works. I have already modified the code and on a fork, but have no way to compile or run the changes. I don't want to push the commit if I can't debug somehow 🤔
niik commentedon Sep 14, 2021
Hey @herboren, please check out our documentation on how to set up a development environment in order to be able to test your changes locally
Nico-Connor-Personal commentedon May 23, 2022
Implementing Visual Studio support required an unconventional approach since Visual Studio doesn't use a unique registry key like most other IDEs.
Thankfully as of Visual Studio 2017 v15.2, Microsoft includes a CLI tool called vswhere with the visual studio installer to help locate the install path of their IDE.
Unfortunately, since this is an external program, it is much slower than looking at the registry to find the install path.
Since currently available editors are calculated at startup, using vswhere could slow down the whole startup of GitHub desktop.
To use vswhere we first need to change the way available editors are loaded. Instead of loading them at run-time we should load them when needed as per this issue: #14666
Once the above issue is completed we could implement visual studio support using vswhere.
steveward commentedon Apr 20, 2023
Requested in #16565.
steveward commentedon Sep 16, 2024
GitHub Desktop now supports adding a custom external editor, so I'm going to close this out as Visual Studio can be added by pointing to
devenv.exe.