I have my default editor for .ahk
files set to Notepad++ Portable on my work laptop, but selecting Edit This Script opens files in the standard Windows Notepad.
A post on the AHK forums suggests editing the registry, but I don't see any entries under HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command
.
How can I configure AutoHotkey to edit scripts with Notepad++?
Setup Notepad++ for AutoHotkey Save it to the right location: 32-Bit (C:\Program Files (x86)\Notepad++\) 64-Bit (C:\Program Files\Notepad++\) as User (%AppData%\Notepad++\)
For whatever reason, the Registry entry doesn't exist by default, but it is recognized by the application once created.
HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell
in RegEdit.New
> Key
and name this Edit.New
> Key
and name this Command."C:\Program Files\Notepad++\Notepad++.exe" "%1"
to this window.Note: I don't use Notepad++, but this works for VS Code on my system, and will for N++ as long as the directory information for the executable is correct.
The corresponding .reg file looks like this:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command] @="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\""
The registry entry in item 5 of the previous answer did not work. I don't even know what the extra %*
at the end means, so I simplified it to:
"C:\Program Files\Notepad++\Notepad++.exe" "%1"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With