Skip to content

Desktop doesn't cleanly integrate with my editor (user feedback desired) #7033

Closed

Description

@billygriffin

Please describe the problem you think should be solved
This is an exploratory issue trying to understand the problem a bit better.

If a GitHub Desktop user doesn't use one of the editors Desktop detects, many of the workflows in the app aren't nearly as clean. This used to be less of an issue as we didn't closely tie very many workflows in Desktop to a user's editor, but as we've learned from our users in many cases a tighter relationship between the two tools makes for a much more streamlined workflow.

There are a few issues where this has manifested:
Selected editor doesn't save when a previously selected editor is uninstalled: #7463
Manual editor setup/detection in preferences #6114
Merge conflicts flow when no editor is detected #6386
Different versions of Atom aren't properly detected #6324
After installing an editor (VS Code), Desktop didn't immediately detect it #7024
Desire for custom defined editor integration #4465 and #5083

We also know that a few of the most widely used editors including Visual Studio and XCode are not detected by Desktop. The reason comes down to the inability of many of the editors we don't support to open a directory in the editor (see #2039 for example, where we made the decision not to support Visual Studio because it wasn't very clean to where we'd direct the user).

Impact

This started out as a convenience to be able to quickly open any file in your editor as you're looking at the diff in Desktop, but the merge conflict resolution process expanded this, and with rebasing and stashing soon to be a part of the product and both having the potential to also introduce conflicts, this will likely be increasingly affecting more and more users.

From our metrics, we've learned that more than 25% of users have no editor detected currently, which is much larger than I expected.

It's unclear to me given the huge % of people that don't have an editor detected by Desktop why we haven't heard about this as a larger pain point. If you have thoughts about that, I'd be super interested to hear more.

Potential next steps

There seem to be two areas of potential focus:

  1. Improving the "no editor detected" experience to either onramp folks to editors that we do detect, or more likely improve the usability of the app in cases where they use an editor we don't detect (for example: Improve no editor detected state on conflicts modal #6386).
  2. Broaden the scope of editors that are detected. If we're going to improve this process, it seems like we need to do the work up front to segregate the editors that are able to open a directory from those that are not, and have a reasonable design in place for how the handoff interactions will work when the user's primary editor is unable to open a directory.

My inclination is that we probably need to do both of these things, but for this issue my focus is more on (2) and supporting a broader set of users using various editors.

Questions (we'd love answers from you!)

If you're someone who doesn't have one of Desktop's detected editors as your primary editor and you therefore don't have a tight integration:

  • What editor do you use most regularly?
  • How does the lack of tight integration of Desktop with your editor affect you? How painful is it? How frequent?

For anyone:

  • For editors that cannot open a directory (Visual Studio XCode, Android Studio, etc.), what would your expectation be if you right click on a file in your changed files and click "Open in [editor]"? How would you expect that to work? Would you be frustrated if it only opened the file without the context of the folder structure (I'm not sure if that's how it would work because I haven't tested this yet)?

Activity

  1. Bibliofile commented on Mar 24, 2019

    @Bibliofile

    How convenient, I just ran into this enough times today to check to see what was being done about it. Generally, I only run into this 1-2 times per day.

    My primary editor is VSCode, but I also use Vim and Notepad++ regularly, and sometimes exclusively depending on the project.

    Since neither Vim nor Notepad++ are detected as an editor, I generally use CTRL+Shift+F to open the folder in Explorer and then open a file manually. (Or, if I'm after a single file, I will right click and open that file in Explorer)

    What I came looking for was actually the ability to specify a custom script to be launched as an "editor" which I could then use to open the editor of my choice. The setup in #5083 is exactly what I'm after.

  2. added
    user-research
    and removed on Apr 17, 2019
  3. shiftkey commented on Apr 17, 2019

    @shiftkey
    Member

    Moving this to user-research because that label feels more fitting for what we're looking for currently...

  4. znd4 commented on Apr 22, 2019

    @znd4

    I've finally gotten vscode to run in wsl ubuntu, and I'd love to be able to specify bash --login -c "code ./" as my external editor command. I wouldn't expect it to be auto-detectable by github desktop, but it would be awesome if there were a way for me to manually configure it.

    Thanks a ton! Excited to hear about the new stuff coming down the pipes :)

    EDIT: This is even more relevant to me now that vscode remote-wsl exists. Thanks again for the awesome application :D

  5. added
    integrations
    on May 24, 2019
  6. matthewbegun commented on Sep 22, 2019

    @matthewbegun

    Desktop has never been able to find any of my editors. Which I believe is because they are all installed in my home directory (on windows 10) rather than in the registry.

    I use a package manager to install them (scoop - incidentally that's how I install Desktop as well).

    Desktop is not typically part of my workflow, I only use it for convenience features for certain tasks. If I need to get to my editor from within Desktop I use the terminal command to get to powershell and then code . or rider . to get to my text editor.

  7. Gakk commented on Mar 4, 2021

    @Gakk

    The urge for detecting Visual Studio lead me to this issue, and to answer the initial questions:

    What editor do you use most regularly?
    Visual Studio 2019 (alongside Visual Studio Code and Notepad++)

    How does the lack of tight integration of Desktop with your editor affect you?
    It is not painful, but after cloning a repository in Desktop it would have been great to right click and select "Open in Visual Studio 2019". I would use this about 2-3 times per week. Currently an option to open in Visual Studio Code is available.

    For editors that cannot open a directory, what would your expectation be if you right click on a file in your changed files and click "Open in [editor]"?
    Usually I have both GitHub Desktop and Visual Studio open at the same time. If Visual Studio already is open with the same repository as Desktop, then the file could be opened directly if possible. If Visual Studio was closed or open with another repository I believe the option to open in Visual Studio should be disabled. I don't see the need to open a single file in Visual Studio if I'm not already working on the repository. With that said, I understand this probably would be a bit too much special handling for one editor.

    What I was looking for was adding "Open in Visual Studio" as an option when right clicking a repository in Desktop. I would then expect to open the solution file in a new Visual Studio instance. To support multiple solutions files in an repository, it could be solved by showing a context menu for each found solution, eg. "Open 'MyProject.sln' in Visual Studio" and "Open 'OtherProject.sln' in Visual Studio".

  8. steveward commented on Nov 12, 2021

    @steveward
    Contributor

    From #13309:

    I use normally VSCode portable. So nothing is set under HKLM...\uninstall and Github Desktop does not detect my VSCode.
    BTW: I've no admin credential the add something to HKLM...\uninstall.
    So please let the user select where an editor is installed.

  9. hl2guide commented on Dec 21, 2021

    @hl2guide

    A simple "browse" button in the Options > Integrations menu for this would be wonderful.

  10. sergiou87 commented on Aug 15, 2024

    @sergiou87
    Member

    Closing this since the changes from #18954 are available in the latest beta https://desktop.github.com/beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    integrationsuser-research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions