How do I make Sublime Text 3 the default editor for .ahk in Windows 10?

Discuss features, issues, about Editors for AHK
Gawyn210
Posts: 1
Joined: 02 May 2018, 08:47

How do I make Sublime Text 3 the default editor for .ahk in Windows 10?

I've tried to edit the registry but it's default is the build in notepad. I've tried changing the default application to Sublime Text rather than AutoHotKeys, but then the code won't run because it need AutoHotkeys to execute. So, how to you do it?
swagfag
Posts: 937
Joined: 11 Jan 2017, 17:59

Re: How do I make Sublime Text 3 the default editor for .ahk in Windows 10?

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command]@="\"your\\path\\to\\sublime\\sublime_text.exe\" \"%1\""