Simon Steele describes the same procedure for his text editor Programmer's Notepad, and also explains which registry key to use on 64-bit Windows, in case you're using a 32-bit version of Notepad2 on 64-bit Windows. For example, "C:\Windows\Notepad2.exe" /z
MAKE NOTEPAD DEFAULT TEXT EDITOR FULL
Set the data of this new "Debugger" value to the full path to the Notepad2 executable, followed by the /z switch.Inside the key, create a new string (REG_SZ) value, named "Debugger".Create the following registry key: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe.
![make notepad default text editor make notepad default text editor](https://i.stack.imgur.com/n2Vt4.png)