Notepad is a simple text editor for Microsoft Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985. It is suitable for users who occasionally perform basic text editing. Advanced users and programmers often use more powerful third-party apps like Notepad++, Geany, Sublime Text, and others. Here is a trick that will allow you to replace Notepad with Notepad++. It works in all Windows versions, including Windows 7, Windows 8.1 and Windows 10.
Notepad++ is a powerful open source plain text editor that comes with tons of useful features, including syntax highlighting, bookmarks, file system navigation, bookmarks, code folding, spell checking, themes, customizable hotkeys, search and replace with regular expressions, and many more.
For plenty of users, Notepad++ needs no introduction.
The developer of Notepad++ has implemented a nice addition to the app. Starting with version 7.5.9, it is possible to make Notepad++ replace the built-in Notepad app.
There is a special value "debugger" that you can specify in the Windows Registry to make Windows start any app instead of the original app. This ability was created specially for developers to debug problems, but it can be useful in many other cases. Some examples:
- How to Take a Screenshot of Login Screen in Windows 10
- Run any app from Ease of Access button on Windows 10 login screen
- Use both Task Managers at once in Windows 10 and Windows 8
The "debugger" string value usually contains the full path to the EXE file which should act as the debugger. It will get the full path to the running executable file. We can use this to override the executable file of the Notepad app.
Notepad++ v7.5.9 can be used as the 'debugger' for the Notepad app. In fact, you could also use previous versions of the app as the debugger for Notepad. However, older versions were opening the Notepad.exe binary in a tab along with the target file. Notepad++ v7.5.9 resolves this issue.
Replace Notepad With Notepad++ in Windows
- Open an elevated command prompt.
- Type or copy-paste the following command:
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
- Now, double-click on a text file or type
notepadin the text box of the Run dialog or Start menu. This will open Notepad++.
- To undo the change, use the following command:
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /f.
The new options
-z of Notepad++ do the trick.
You can get the app here:
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!