tnrich
tnrich

Reputation: 8580

Github desktop open in sublime, not atom

In GitHub Desktop, is there any way to change the right click "Open in Atom" option, to instead be "Open in Sublime" or some other text editor?

enter image description here

Thanks!

Upvotes: 6

Views: 1886

Answers (4)

fregante
fregante

Reputation: 31688

They finally added an option in the Preferences:

preferences

Upvotes: 4

Marc Garcia Rodriguez
Marc Garcia Rodriguez

Reputation: 24

On the latest github desktop, you can use: File-> Options-> Integrations-> External editor

enter image description here

enter image description here

Upvotes: 0

papo
papo

Reputation: 1949

on Windows with portable Sublime Text editor.

You need to create a registry key with a path to a folder where subl.exe file is. This is the absolute minimum (of valunames) for the key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text 3_is1]
"Publisher"="Sublime HQ Pty Ltd"
"DisplayName"="Sublime Text 3"
"InstallLocation"="C:\\Apps\\YOUR\\PATH\\TO\\Sublime\\"
"Comment"="This key is needed for Github to detect SublimeText"

valuename Comment is not needed. I added it for myself to remember what's this key about.

This is the registry location for Uninstall info. But because I removed most of the valuenames which original Sublime installation creates, Windows Uninstall will not show this as an entry to remove in Uninstall.

Upvotes: 1

Let'sRefactor
Let'sRefactor

Reputation: 3346

You can't, as it seems to be a part of app's menu. However, you can set your default editor in global config like

git config --global core.editor "subl -n -w"

For more, refer Associating text editors with Git

Upvotes: 1

Related Questions