Notepad is a lightweight program suitable for users who only need very minimal text editing features. For extra features and functionality, third-party editors like Notepad ++ and Sublime Text are great with lots of built-in features.
If you are looking to completely replace old Notepad with Notepad ++ or any third party editor, this post will tell you how. Notepad ++ is a free source code editor and Notepad replacement that supports several languages. See how you replace Notepad with Notepad ++ without having to replace any system files.
How to replace Notepad with Notepad ++ in Windows?
Which of the following methods should you use?
If you want Notepad ++ to open whenever you double-click the text file and whenever notepad.exe is executed, follow one of the options below Method 2. And this also means that you Notepad cannot be run as long as the installation is in effect.
Meanwhile, if you follow Method 1, you can still launch Notepad by mentioning its full path in the Run dialog box. You can also open files with Notepad by selecting Notepad from the Open with dialog box.
Method 1: Link the text file (.txt) with Notepad ++
- Create a sample text document on the desktop.
- Right-click on the file and click Properties.
- Click the Change button, select Notepad ++ from the list of displayed applications and click OK .
- If Notepad ++ is not listed there, click Add another application. To display the extended list. Notepad ++ may not be listed there if you are using the mobile version. If so, click Search for another application on this PC and manually browse the Notepad ++ folder to select the executable file. The default Notepad ++ executable path is C: Program Files (x86) Notepad ++ notepad ++. Exe
- Double-clicking on the .txt file will now open Notepad ++.
Method 2: Replace Notepad with Notepad ++ with Debugger Registry Value
Windows provides a way to redirect a program (process) using the Debugger Registry Value. When you redirect a program using this method, every time you start Notepad by running notepad.exe directly or when running a text file, Notepad ++ will start instead of Notepad.
Option 1: Use the new command line of Notepad ++
Note: This is a RECOMMENDED method. It does not need 3rd party programs or scripts.
If you have Notepad ++ version 7.5.9 or higher, you can run the following command to create Notepad ++ instead of Notepad.
- Start an Advanced Command Prompt or with Adminstrator
- Copy the following command and paste it into the Command Prompt window:
reg add "HKLMSoftwareMicrosoftWindows NTCurrentVersionImage File Execution Optionsnotepad.exe" /v "Debugger" /t REG_SZ /d ""%ProgramFiles(x86)%Notepad++notepad++.exe" -notepadStyleCmdline -z" /f
Note that you may need to use% ProgramFiles% Notepad ++ Replace% ProgramFiles (x86)% Notepad ++ if you have 64-bit Notepad ++ installed or use a different path if your Notepad ++ Installed in the non-default position.
After running the command, here’s how to debugger the registry value, which looks like this:
notepad plus replace the notepad.exe debugger You can also modify the registry value above using Registry Editor (regedit.exe) if you do not like the command line method.
To undo (reverse) instead, use the following command:
reg delete "HKLMSoftwareMicrosoftWindows NTCurrentVersionImage File Execution Optionsnotepad.exe" /v "Debugger" /f
Close the Command Prompt window.
** Option 2: Use the NotepadReplacer program
NotepadReplacer software from Binary Fortress allows you to replace Notepad easily! No need to edit the registry; The program automatically does that.
Download this NotepadReplacer program and run it.
Select the Notepad alternative (assuming Notepad ++) by browsing and selecting the executable file and completing the steps.
This program automatically sets up the debugger for Notepad, redirects it to Notepad NotepadReplacer.exe, a proxy program that then launches Notepad ++ and passes the file name arguments to it.
Article written by: Gameloop.Mobi