# Edit

> Terminal text editor written in Rust, modeled on the MS-DOS Editor with VS Code-style input controls. Runs on Windows, macOS, and Linux.

Stars: 14.7k · Language: Rust · License: MIT · Categories: Editor

- Repository: https://github.com/microsoft/edit
- Page: https://www.trmn.sh/tools/edit

## Install

- WinGet: `winget install Microsoft.Edit`
- Homebrew: `brew install msedit`
- Install script (Linux, build from source): `curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/microsoft/edit/main/assets/install.sh | sh`

## Overview

Edit is a terminal text editor from Microsoft, written in Rust. It pays homage to the classic MS-DOS Editor and uses input controls similar to VS Code. It targets users who are largely unfamiliar with terminals and need an editor they can pick up without learning modal or keyboard-heavy workflows. It has a dialog-based interface, including an About dialog shown in the project screenshot.

The canonical executable name is "edit", with "msedit" as an alternative name to avoid conflicts with existing commands. Package maintainers are advised to name packages "msedit" and to set an "edit" alias where possible. Search and Replace optionally depends on the ICU library. The library names, symbol prefixes, and versioned exports can be configured at build time through `EDIT_CFG_ICU*` environment variables. `EDIT_CFG_LANGUAGES` selects which interface languages are included in the build.

Prebuilt packages are available through WinGet on Windows and Homebrew on macOS, and binaries are published on the GitHub Releases page. On Linux there is an install script that builds from source and installs `msedit` into `~/.local/bin`. It requires Rust, a C compiler, ICU, and curl/wget with tar. Building with nightly Rust, or stable Rust with `RUSTC_BOOTSTRAP=1`, reduces binary size and slightly improves performance.

### Installation

```bash
# via WinGet
winget install Microsoft.Edit
```

```bash
# via Homebrew
brew install msedit
```

```bash
# via Install script (Linux, build from source)
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/microsoft/edit/main/assets/install.sh | sh
```

![Screenshot of Edit with the About dialog in the foreground](https://media.trmn.sh/cached/afcff03bb04d039fbedd3c5fee7f6beba2578893a1b3822ce4817dab25bdbb66.png)

## Alternatives

- [Fresh](https://www.trmn.sh/tools/fresh.md): Terminal text editor with VS Code-style keybindings, mouse support, LSP, multi-cursor editing, and a command palette that requires no configuration. (Rust, 9.3k stars)
- [Helix](https://www.trmn.sh/tools/helix.md): A terminal-based text editor written in Rust, inspired by Kakoune and Neovim with built-in language server support (Rust, 46.7k stars)
- [Kakoune](https://www.trmn.sh/tools/kakoune.md): Modal code editor inspired by Vim that uses multiple selections as its core editing model, with a client-server architecture and external tool integration. (C++, 11.1k stars)
- [amp](https://www.trmn.sh/tools/amp.md): Vi/Vim-inspired terminal text editor built in Rust with simplified interaction model and modern features. (4.1k stars)
- [flowcontrol](https://www.trmn.sh/tools/flowcontrol.md): TUI text editor built with Zig, featuring tree-sitter syntax highlighting, LSP support, and multiple keybinding modes (Zig, 2.5k stars)

---

Canonical: https://www.trmn.sh/tools/edit
