I wanted to change the editor used when clicking on “Edit this Script” on an Autohotkey icon, from Notepad to Notepad++. There are many references to this, but they all assume that Autohotkey is installed and I’m running it semi-portably. (i.e. I have the files on a flash drive and I never installed it.)

I saved the following in a .reg file in my Autohotkey folder, so I can load it into the registry wherever I plug in my flash drive.

Windows Registry Editor Version 5.00





@="\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\" \"%1\""


@="\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\" \"%1\""