I have Atom configured as my Notepad replacement, using the debugger trick:
$key = "HKLM:/SOFTWARE/Wow6432Node/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/notepad.exe" md $key -ea SilentlyContinue set-itemproperty -path $key -name "Debugger" -value "c:\Users\moswald\AppData\Local\atom\bin\atom.cmd -z"
Now whenever something tries to run
notepad some_file, the command
....\atom.cmd -z notepad some_file is executed instead. However, Atom tries to open notepad.exe as a file. Several Notepad replacements (Sublime Text, Notepad2, Notepad++, etc…) support the
-z option which means “ignore the very next parameter”.
Note this used to work when Atom was installed through Chocolatey because I could set the debugger to “atom.exe” and for whatever reason, this worked fine. Now, the proper way to run Atom is with “atom.cmd”, and it fails.