Table of Contents
Microsoft Edit is a plain-text editor that runs inside Windows Terminal, PowerShell, or Command Prompt. Microsoft includes it in Windows 11 version 25H2 and in builds with the September 2025 optional update or newer. Open a terminal and type edit to see whether it is available.
Open a file from the terminal
To open a file in the current folder, type its name after the command. Quote paths that contain spaces.
edit "project notes.txt"
You can also open Edit by itself and use the File menu. Edit works with plain-text files such as logs and configuration files. Make a copy before editing a configuration you may need to restore.
Find text and move between open files
Use Find or Replace for repeated text. Check the first match before applying a bulk replacement, especially if the text occurs in several unrelated settings.
Open the Document Picker to switch between files in the current session. Save each file you changed before closing the editor.
Use Go to Line when an error message names a line number. Turn on word wrap to read long lines without horizontal scrolling.
Install Edit if the command is missing
Check for the Windows update that includes Edit or use the command documented in Microsoft’s Edit guide.
winget install Microsoft.Edit
After installation, open a new terminal window and run edit again. On a managed PC, check with your administrator if installs are restricted.
Reader Comments 0
Sign in with email or Google to join the discussion.