Windows Registry Editor Version 5.00
; Prevent Windows from resetting the association [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe] @="\"C:\\Program Files\\Notepad++\\notepad++.exe\"" replace notepad with notepad++ windows 11
Copy and paste the following command into the terminal (ensure the path matches your Notepad++ installation): Windows Registry Editor Version 5
Now, whenever the system calls notepad.exe , Notepad++ will launch instead. Windows Registry Editor Version 5.00