Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

microsoft/edit

Developer Tools

A modeless terminal text editor inspired by MS-DOS Editor, aimed at Windows admins and terminal newcomers.

14,785
746
Rust
MIT
1 year old

What it is

Edit is a terminal text editor with a classic MS-DOS Editor lineage but a modern, modeless interface and keybindings closer to VS Code. Its stated goal is an accessible editor that people who are not comfortable in terminals can use without learning vi-style modes. It is written in Rust, published by Microsoft under the MIT license, and ships as the edit / msedit executable.

Search and replace optionally depends on ICU; package maintainers can adjust ICU library names and symbol conventions at build time, and the README documents these settings for distributions that use versioned SONAMEs (ICU build configuration).

Install

Windows users can install from WinGet:

winget install Microsoft.Edit

On macOS, use Homebrew:

brew install msedit

On Linux, check whether your distribution packages it via the Repology version list (package versions), or download a binary from the latest releases. If neither fits, the install script builds from source; it requires Rust, a C compiler, ICU, and curl/wget plus tar, and puts msedit in ~/.local/bin by default (install script usage):

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/microsoft/edit/main/assets/install.sh | sh

After installation, run edit or msedit on a file path. The canonical executable name is edit, with msedit as the alternative; the README recommends that packages use msedit to avoid clashing with existing edit commands.

Build from source

Install Rust, clone the repository, then build. Nightly Rust with the release profile config gives the smallest binary and is recommended; stable Rust works with RUSTC_BOOTSTRAP=1 for the same result, or with a plain release build:

cargo build --release

Build-time variables EDIT_CFG_LANGUAGES and the EDIT_CFG_ICU* family control included UI languages and ICU linkage (build configuration).

Constraints

  • The editor is intentionally simple; it targets basic editing rather than a full IDE feature set.
  • Language availability in the binary is controlled at build time through EDIT_CFG_LANGUAGES.
  • Search and replace needs ICU, so source builds on Linux must have ICU development files and matching library names.
  • The name edit may conflict with existing commands, so msedit is the recommended package and alias name.

HotRepo's take

Edit drew a 486-point, 322-comment Hacker News thread in June 2025 (discussion), where the practical rationale was framed as a command-line editor for Windows Server Core installs and SSH administration that non-vi users can operate (comment). A later 2.0.0 thread focused on its custom syntax-highlighting engine: a commenter contrasted the roughly 183 MB of Helix grammars with Edit's compact binary and called the size difference significant for its use cases (comment). Earlier discussion also compared it with micro, with one reader noting Edit lacked out-of-the-box syntax highlighting at the time (comment). The repository sits in the HotRepo Rust daily list with a best position of 7 on 2026-11-18, gaining 8 stars that day.

Written by AI from the project's README, updated . The project's own docs are the source of truth.

Hacker News

Microsoft Edit
▲ 486 · 322 comments · June 25, 2025
Microsoft Edit – a simple terminal text editor (written in Rust)
▲ 14 · 2 comments · May 19, 2025
Microsoft Edit
▲ 10 · 2 comments · May 25, 2025

You might also like

  1. eugenioenko/tttA terminal code editor for developers who want IDE-grade editing (LSP, multi-cursor, git) without leaving the shell.Go831
  2. QwenLM/qwen-codeA terminal AI coding agent that can read, edit, run and review code, with editor, desktop, web and chat interfaces.TypeScript28,828
  3. jesseduffield/lazygitA terminal interface for Git that turns staging, rebasing and history edits into guided keyboard actions.Go83,495
  4. openai/codexA terminal coding agent from OpenAI that reads your repo, edits files and runs commands from a prompt.Rust131,379
  5. lapce/lapceA Rust-written code editor with built-in LSP, modal editing, remote development, and WASI plugins.Rust39,063