Notepad has long been the default text editor in Windows, but advanced users and developers may prefer Microsoft Edit, a modern command-line–based text editor designed for terminal workflows. Microsoft Edit offers better keyboard-driven editing, scripting flexibility, and a lightweight experience compared to the traditional Notepad app.
On Windows 11, Microsoft Edit does not replace Notepad automatically and is not set as the default editor through normal app settings. However, Windows allows you to redirect how text files and commands open by adjusting file associations and system behavior, effectively replacing Notepad with Microsoft Edit for your workflow.
Replacing Notepad with Microsoft Edit in Windows 11 involves installing Microsoft Edit and configuring file associations or command overrides so Edit opens instead of Notepad. The steps below explain how to do this correctly.
How to Replace Notepad with Microsoft Edit on Windows 11
The steps in this section focus on installing Microsoft Edit and redirecting text file handling and command usage away from Notepad. Follow the steps carefully to avoid breaking default system behavior.
Restart apps where instructed so changes take effect properly.
1. Install Microsoft Edit on Windows 11
Microsoft Edit must be installed before it can be used as a replacement.
- Open Windows Terminal.
- Run the following command:
winget install Microsoft.Edit - Wait for the installation to complete.
- Close and reopen Windows Terminal.
- Verify installation by typing:
edit
If Edit opens, it is installed correctly.
2. Set Microsoft Edit as the Default Editor for TXT Files
This replaces Notepad for double-clicking text files.
- Right-click any .txt file.
- Select Open with.
- Click Choose another app.
- Select Microsoft Edit if listed.
- Check Always use this app to open .txt files.
- Click OK.
Text files will now open in Microsoft Edit instead of Notepad.
3. Change Default App Associations from Settings
You can also set the default editor globally.
- Open Settings.
- Go to Apps.
- Select Default apps.
- Scroll down and click Choose defaults by file type.
- Locate .txt.
- Assign Microsoft Edit as the default app.
This ensures consistency across the system.
4. Replace Notepad Command Using Registry (Advanced)
Some apps and scripts explicitly call Notepad.
- Press Windows + R, type regedit, and press Enter.
- Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options - Create a new key named notepad.exe.
- Inside it, create a String Value named Debugger.
- Set its value to the full path of Edit, for example:
"C:\Program Files\Microsoft Edit\edit.exe" - Close Registry Editor.
- Restart the system.
This forces any call to Notepad to open Microsoft Edit instead.
5. Test the Replacement
Confirm that the replacement works correctly.
- Press Windows + R.
- Type
notepadand press Enter. - Verify that Microsoft Edit opens instead.
- Double-click a .txt file and confirm it opens in Edit.
Successful tests confirm Notepad has been replaced.
6. Revert to Notepad if Needed
You can undo the replacement at any time.
- Remove the notepad.exe registry key created earlier.
- Reset .txt file associations back to Notepad.
- Restart the system.
This restores default Windows behavior.
Final Thoughts
Replacing Notepad with Microsoft Edit on Windows 11 is a practical choice for users who prefer terminal-based editing and keyboard-driven workflows. By setting file associations or redirecting the Notepad command, you can seamlessly integrate Microsoft Edit into your daily usage without removing Notepad entirely.