1

How to Completely Replace Notepad With Notepad++ in Windows

Posted by Jim Tanous on December 10, 2018
replace notepad notepad plus plus

Notepad++ is a popular free text editor for Windows that includes many features essential for viewing and editing code, creating and modifying macros, and working with multiple documents simultaneously. Many Notepad++ users prefer to use the app instead of the default Notepad that ships with Windows.
Rather than manually changing the default application for multiple file types, there’s an easier way that allows Notepad++ to completely replace standard Notepad. Here’s how it works.

Replace Notepad with Notepad++

  1. First, make sure you’re running at least Notepad++ 7.5.9. You can download the latest versions of the app from its website.
  2. With the correct version installed, open a Command Prompt window with admin privileges. You can do this by searching for cmd via the Start Menu, right-clicking on its result, and choosing Run as Administrator.
  3. windows cmd admin

  4. From the Command Prompt, enter one of the following commands depending on the version of Notepad++ you have installed:
  5. 32-bit Notepad++
    reg add "HKLMSoftwareMicrosoftWindows NTCurrentVersionImage File Execution Optionsnotepad.exe" /v "Debugger" /t REG_SZ /d ""%ProgramFiles(x86)%Notepad++notepad++.exe" -notepadStyleCmdline -z" /f
    64-bit Notepad++
    reg add "HKLMSoftwareMicrosoftWindows NTCurrentVersionImage File Execution Optionsnotepad.exe" /v "Debugger" /t REG_SZ /d ""%ProgramFiles%Notepad++notepad++.exe" -notepadStyleCmdline -z" /f
    notepad++ replace notepad windows cmd

  6. You’ll see the message The operation completed successfully if everything worked. Now test out the change by performing an action that would normally launch Notepad, such as opening a text file. Instead of standard Notepad, you should see Notepad++ launch.
  7. notepad++ replace notepad windows

  8. To undo this change and restore standard Notepad as the default text editor in Windows, open another admin Command Prompt and use the following command (which is the same for both 32-bit and 64-bit versions):

reg delete "HKLMSoftwareMicrosoftWindows NTCurrentVersionImage File Execution Optionsnotepad.exe" /v "Debugger" /f
Note that the commands above assume that you installed Notepad++ in its default location. If you used a custom installation directory, edit the command accordingly to point to the correct directory.

One thought on “How to Completely Replace Notepad With Notepad++ in Windows”

/lasse says:
Doesn’t work for e.g. Context Menu “edit” of a .bat file. Do mess-up that, Windows say it can not find the file.
Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.