Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use Microsoft Edit in Windows Terminal

Open plain-text files with the Windows 11 edit command, install Microsoft Edit if needed, and use Find, Replace, and Go to Line.

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.

Windows 11 is about to have a built-in text editor 'edit' Picture 1

Open the Document Picker to switch between files in the current session. Save each file you changed before closing the editor.

Windows 11 is about to have a built-in text editor 'edit' Picture 2

Use Go to Line when an error message names a line number. Turn on word wrap to read long lines without horizontal scrolling.

Windows 11 is about to have a built-in text editor 'edit' Picture 3

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.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.