Windows 11 includes the Microsoft Edit command-line tool for editing text files directly within Command Prompt or PowerShell. The tool is under 250KB in size. To install Microsoft Edit, users can open Command Prompt as an administrator and run the command:
winget install --id Microsoft.Edit. Alternatively, it can be downloaded from GitHub, but manual configuration is required.
To use Microsoft Edit, users can launch it by typing PLACEHOLDERb167be8248c505bb in Command Prompt or PLACEHOLDER4905f66b5f26fc6f for administrator access. Existing text files can be edited using the command edit filename.txt, and new files can be created with the same command. Basic editing options include undo, redo, cut, copy, paste, and find and replace. Files can be saved with "Ctrl + S" and exited with "Ctrl + Q". The tool is designed for straightforward text editing without the need to switch applications.