We all edit.
Edit
A simple editor for simple needs.
This editor pays homage to the classic MS-DOS Editor, but with a modern interface and input controls similar to VS Code. The goal is to provide an accessible editor that even users largely unfamiliar with terminals can easily use.

Installation
You can also download binaries from our Releases page.
Windows
You can install the latest version with WinGet:
winget install Microsoft.Edit
Linux (build from source)
If your distribution does not provide binaries, or if you'd like to build your own, you can use our install script, provided you have installed:
- Rust (via
rustupor similar) - A C compiler (e.g.
gcc) - ICU (e.g. libicu78, libicu, icu)
- curl/wget and tar
msedit into ~/.local/bin: curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/microsoft/edit/main/assets/install.sh | sh
Additional flags are --dev, to build directly from the main branch, and --system to install into /usr/local/bin. For instance:
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/microsoft/edit/main/assets/install.sh | sh -s -- --dev --system
macOS
You can install the latest version with Homebrew:
brew install msedit
Build Instructions
- Install Rust
- Clone the repository
- If you're using nightly Rust:
cargo build --release --config .cargo/release.toml
- If you're using stable Rust:
RUSTC_BOOTSTRAP=1 and use the nightly build instructions above.
This is recommended, because it drastically reduces the binary size and slightly improves performance.
* Otherwise, simply run:
cargo build --release
Build Configuration
You can set the following environment variables at build-time to configure the build:
Environment variable | Description --- | --- EDITCFGICU* | See ICU library name (SONAME) below for details. Linux package maintainers are advised to review and configure these options. EDITCFGLANGUAGES | A comma-separated list of languages to include in the build. See i18n/edit.toml for available languages.
Notes to Package Maintainers
Package Naming
The canonical executable name is "edit" and the alternative name is "msedit". We're aware of the potential conflict of "edit" with existing commands and recommend alternatively naming packages and executables "msedit". Names such as "ms-edit" should be avoided. Assigning an "edit" alias is recommended, if possible.
ICU library name (SONAME)
This project optionally depends on the ICU library for its Search and Replace functionality.
By default, the project will look for the following library names:
Variable | Windows | macOS | Linux / Other ----------|---------|-------|--------------- EDITCFGICUUC_SONAME | icuuc.dll | libicucore.dylib | libicuuc.so EDITCFGICUI18N_SONAME | icuin.dll | libicucore.dylib | libicui18n.so
If your installation uses a different SONAME, please set the following environment variable at build time:
EDITCFGICUUC_SONAME:
libicuuc.so.76. EDITCFGICUI18N_SONAME:
libicui18n.so.76.
Additionally, this project assumes that the ICU exports symbols without prefix and without version suffix, such as uerrorName. If your installation uses versioned exports, please set:
EDITCFGICUCPPEXPORTS:
true, it'll look for C++ symbols such as uerrorName. Enabled by default on macOS. EDITCFGICURENAMINGVERSION:
76, it'll look for symbols such as uerrorName76.
Finally, you can set the following environment variables:
EDITCFGICURENAMINGAUTO_DETECT:
true, the executable will try to detect the EDITCFGICURENAMINGVERSION value at runtime. The way it does this is not officially supported by ICU and as such is not recommended to be relied upon. Enabled by default on UNIX (excluding macOS) if no other options are set.
To test your build settings, run cargo test with the --ignored flag. For instance:
cargo test -- --ignored