


Copy the following command, paste it into Command Prompt, and press Enter: reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%ProgramFiles(x86)%\Notepad++\notepad++.exe\" -notepadStyleCmdline -z" /f.Start an elevated or admin Command Prompt.Run the following command to replace Notepad with Notepad++. It doesn’t need a 3rd party program or script. How to Replace Notepad with Notepad++ Method 1 Option 1: Using Notepad++’s new command-line Whereas if you follow Method 2 (which is a traditional file association modification), you can still launch Notepad as usual y ou can start Notepad via shortcut, the Run dialog, Open with dialog, etc. This method works in Notepad++ 7.5.9 and higher. Once you redirect a program using this method, when you launch Notepad by running notepad.exe directly or double-click a text file, Notepad++ starts instead of Notepad.

This method uses the debugger registry value to redirect a program to another program. This also means that you can’t run Notepad as long as the setting is in effect. If you want Notepad++ to open whenever you double-click a text file, and whenever notepad.exe is executed, follow one of the options under Method 1.

