To replace Notepad with Microsoft Edit on Windows 11, set edit.exe as the default app for .txt files in Settings > Apps > Default apps, so text files open in the lightweight terminal editor instead of Notepad.
This guide covers where Edit lives, how to install it with winget if it is missing, the shortcuts you need, how to switch back to Notepad, and why some people prefer Edit.

Configure Microsoft Edit as your text file editor on Windows 11
Edit is a console program, not a Store app, so Windows may not list it among the suggested apps for .txt files. You point Windows at the file yourself, which takes a minute once you know its full path.
- Open Terminal, type
where.exe editand press Enter. Copy the full path it prints. - Open Settings > Apps > Default apps. You can also press Win + R, type
ms-settings:defaultappsand press Enter. - In the search box under Set a default for a file type or link type, type
.txt. - Select the app shown under the
.txtresult. - If Edit is not in the list, use the option at the bottom of the list to look for an app on this PC, then browse to the path you copied and select
edit.exe. - Select Set default to save the change.
Double-click any .txt file afterwards and it opens in a terminal window with Edit running. Repeat the same steps for .log, .ini, .md or any other plain-text extension you want Edit to own.

What is Microsoft Edit in Windows 11
Microsoft Edit is a small, open-source command-line text editor that Microsoft added to Windows 11. It pays homage to the old MS-DOS Editor but uses input controls similar to VS Code.
| Fact | Detail |
|---|---|
| Included in | Windows 11 September 2025 optional update or newer, and Windows 11, version 25H2 |
| Size | Less than 250 kB |
| Interface | Modeless text user interface inside Command Prompt, PowerShell or Windows Terminal |
| Command | edit to open the editor, edit <file-name> to open a file |
| Licence | Open source under the MIT license, written in Rust |
| Other platforms | Also available on Linux and macOS |
| Why it exists | 64-bit Windows had no built-in command-line editor after the 16-bit MS-DOS Editor was retired |
Microsoft Edit vs Notepad on Windows 11
Notepad has grown into a richer app with formatting and AI writing tools. Edit stays a plain-text editor. That difference is the main reason to swap.
| What you want | Better choice | Why |
|---|---|---|
| Open config files and logs as plain text, fast | Microsoft Edit | Under 250 kB, no formatting layer, runs in the terminal you already have open |
| Edit files over SSH or in a terminal session | Microsoft Edit | It works entirely inside the console window |
| Find and replace with regular expressions | Microsoft Edit | Find & Replace supports Match Case, Whole Word and Regular Expression |
| No AI features or Microsoft account prompts | Microsoft Edit | Notepad's Write, Rewrite and Summarize need a Microsoft account sign-in and AI credits |
| Markdown formatting, tables and headings | Notepad | Notepad has a formatting toolbar and Markdown syntax support |
| Rewrite or summarize text with AI | Notepad | Rewrite offers three variations; Summarize offers short, medium or long results |
Notepad keeps getting new features in Windows 11, and none of them are removed when you change the default app. Notepad stays installed and you can still open it from Start.

How to install Microsoft Edit on Windows 11 with winget
Check first whether Edit is already there. Open Command Prompt, PowerShell or Windows Terminal and type edit. If the editor opens, skip this section.
If Windows says the command is not recognized, install Edit from the Windows Package Manager.
winget install Microsoft.Edit
winget is the Windows Package Manager, part of App Installer. install fetches the package named Microsoft.Edit from the winget repository and runs its installer.
You should see: winget reports that the package installed successfully. Close and reopen the terminal, then type edit and the editor opens.
To update Edit later, run winget upgrade Microsoft.Edit. If winget itself is not recognized, install or update App Installer from the Microsoft Store, because winget ships inside it.

How to open a file in Microsoft Edit from Terminal
- Right-click Start and select Terminal.
- Type
cdfollowed by the folder that holds the file, for examplecd Documents, and press Enter. - Type
edit notes.txtand press Enter. Use the real file name. - Edit the text. Use the mouse to open the menus at the top; each command shows its keyboard shortcut beside it.
- Save the file from the menu, then close Edit to return to the prompt.
Type edit on its own to start with an empty file. Open several files and press Ctrl + P to move between them without leaving the terminal.
Microsoft Edit keyboard shortcuts
Every menu option has a preconfigured key binding, and the menus show them. These are the ones Microsoft documents.
| Shortcut | Action | Menu equivalent |
|---|---|---|
| Ctrl + P | Switch between open files | File list in the lower-right corner |
| Ctrl + F | Find text | Edit > Find |
| Ctrl + R | Find and replace text | Edit > Replace |
| Alt + Z | Turn word wrap on or off | View > Word Wrap |
| Mouse | Open menus, select text and scroll | Works in Windows Terminal and the console |
Find & Replace supports Match Case, Whole Word and Regular Expression options. For the same job in Notepad, the Notepad find and replace dialog does the job without regular expressions.

How to tell if .txt files open in Microsoft Edit
- Open Settings > Apps > Default apps.
- Type
.txtin the file type search box. - Check that the app shown under
.txtis Edit and not Notepad. - Open File Explorer and double-click a .txt file.
- A terminal window should open with the file loaded in Edit.
How to set Notepad back as the default text editor in Windows 11
Changing the default never removes Notepad, so switching back is one setting.
- Open Settings > Apps > Default apps.
- Type
.txtin the search box under Set a default for a file type or link type. - Select the app shown under
.txt, which is now Edit. - Select Notepad in the list.
- Select Set default.
Do the same for every other extension you moved to Edit, such as .log or .ini.
Microsoft Edit not working on Windows 11
'edit' is not recognized as an internal or external command
The PC does not have the September 2025 optional update or version 25H2, so Edit is not built in.
- Open Settings > Windows Update and select Check for updates.
- Or run
winget install Microsoft.Editin Terminal. - Close and reopen the terminal, then type
editagain.
'winget' is not recognized
App Installer, which contains winget, is missing or has not registered for your account yet.
- Open the Microsoft Store and install or update App Installer.
- Sign out and back in, then open a new terminal and type
winget --version.
Edit is not offered in the Default apps list for .txt
Edit is a console program without a Store registration, so Windows does not suggest it.
- Run
where.exe editin Terminal and copy the path. - In Default apps, use the option at the bottom of the app list to look for an app on this PC.
- Browse to the copied path and select
edit.exe.
Text files still open in Notepad after the change
The default was set for one extension only, or the file uses a different extension.
- Right-click the file, select Properties and read Type of file.
- Set Edit as the default for that exact extension in Default apps.
Microsoft Edit FAQ
Is Microsoft Edit built into Windows 11?
Yes, on current builds. Edit is included from the Windows 11 September 2025 optional update and in Windows 11, version 25H2. On older builds, install it with winget install Microsoft.Edit.
How do I open Microsoft Edit?
Type edit in Command Prompt, PowerShell or Windows Terminal and press Enter. To open a specific file, type edit followed by the file name, such as edit notes.txt.
Can I make Microsoft Edit the default app for text files?
Yes. In Settings, Apps, Default apps, search for .txt, select the current app and choose edit.exe from its folder. Text files then open in a terminal window running Edit.
Does replacing Notepad with Edit uninstall Notepad?
No. Changing the default app only changes which program opens .txt files. Notepad stays installed, and you can open it from Start or set it back as the default at any time.
Does Microsoft Edit have AI features like Notepad?
No. Microsoft documents Edit's features as modeless editing, multiple files, find and replace, word wrap and mouse support. Notepad's Write, Rewrite and Summarize tools are separate and need a Microsoft account.
Is Microsoft Edit the same as the old MS-DOS Editor?
No. Edit pays homage to the MS-DOS Editor, but it is a new program written in Rust with VS Code-style controls. The 16-bit MS-DOS Editor never ran on 64-bit Windows.
Is Microsoft Edit free?
Yes. Edit is open source under the MIT license, ships with current Windows 11 builds, and is free to install with winget on older ones.
How do I update Microsoft Edit?
Run winget upgrade Microsoft.Edit in Terminal. The winget upgrade command updates any package it manages, and winget list shows which version is installed.





