How to replace Notepad with Microsoft Edit on Windows 11 (and why)

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.

How to replace Notepad with Microsoft Edit on Windows 11 (and why)
Edit runs inside Windows Terminal with File, Edit, View and Help menus, and is less than 250 kB. (Image: Microsoft)

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.

  1. Open Terminal, type where.exe edit and press Enter. Copy the full path it prints.
  2. Open Settings > Apps > Default apps. You can also press Win + R, type ms-settings:defaultapps and press Enter.
  3. In the search box under Set a default for a file type or link type, type .txt.
  4. Select the app shown under the .txt result.
  5. 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.
  6. 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.

Replace Notepad with Microsoft Edit: Choose an app on your PC and Set default
Edit is not suggested for .txt, so pick the option at the bottom, browse to edit.exe, then select Set default. (Image: Microsoft Q&A)

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.

Microsoft Edit vs Notepad: Notepad on Windows 11 with headings, lists and tables
Notepad now adds formatting and AI writing tools, while Edit stays a plain-text editor inside the terminal. (Image: Microsoft)

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.

Install Microsoft Edit with winget: Windows Package Manager command list in Terminal
If winget answers like this, run winget install Microsoft.Edit; if it is not recognized, update App Installer first. (Image: Microsoft)

How to open a file in Microsoft Edit from Terminal

  1. Right-click Start and select Terminal.
  2. Type cd followed by the folder that holds the file, for example cd Documents, and press Enter.
  3. Type edit notes.txt and press Enter. Use the real file name.
  4. Edit the text. Use the mouse to open the menus at the top; each command shows its keyboard shortcut beside it.
  5. 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.

Microsoft Edit keyboard shortcuts: Ctrl + R opens the Find and Replace bar
The bar offers Match Case, Whole Word and Use Regex options plus Replace All; Ctrl + F opens Find alone. (Image: Microsoft)

How to tell if .txt files open in Microsoft Edit

  1. Open Settings > Apps > Default apps.
  2. Type .txt in the file type search box.
  3. Check that the app shown under .txt is Edit and not Notepad.
  4. Open File Explorer and double-click a .txt file.
  5. 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.

  1. Open Settings > Apps > Default apps.
  2. Type .txt in the search box under Set a default for a file type or link type.
  3. Select the app shown under .txt, which is now Edit.
  4. Select Notepad in the list.
  5. 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.

  1. Open Settings > Windows Update and select Check for updates.
  2. Or run winget install Microsoft.Edit in Terminal.
  3. Close and reopen the terminal, then type edit again.

'winget' is not recognized

App Installer, which contains winget, is missing or has not registered for your account yet.

  1. Open the Microsoft Store and install or update App Installer.
  2. 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.

  1. Run where.exe edit in Terminal and copy the path.
  2. In Default apps, use the option at the bottom of the app list to look for an app on this PC.
  3. 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.

  1. Right-click the file, select Properties and read Type of file.
  2. 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.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

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