{"id":10694,"date":"2025-05-19T09:04:35","date_gmt":"2025-05-19T16:04:35","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/commandline\/?p=10694"},"modified":"2025-05-20T09:40:55","modified_gmt":"2025-05-20T16:40:55","slug":"edit-is-now-open-source","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/commandline\/edit-is-now-open-source\/","title":{"rendered":"Edit is now open source"},"content":{"rendered":"<h1>What is Edit?<\/h1>\n<p>Edit is a new command-line text editor in Windows. Edit is open source, so you can <a href=\"https:\/\/github.com\/microsoft\/edit?tab=readme-ov-file#build-instructions\">build<\/a> the code or <a href=\"https:\/\/github.com\/microsoft\/edit?tab=readme-ov-file#installation\">install<\/a> the latest version from <a href=\"https:\/\/github.com\/microsoft\/edit\">GitHub<\/a>!<\/p>\n<p>This CLI text editor will be available to preview in the <a href=\"https:\/\/www.microsoft.com\/windowsinsider\/\">Windows Insider Program<\/a> in the coming months. After that, it will ship as part of Windows 11!<\/p>\n<h1>How to use Edit<\/h1>\n<p>Open Edit by running <code>edit<\/code> in the command line or running <code>edit &lt;your-file-name&gt;<\/code>. With this, you will be able to edit files directly in the command line without context switching.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Edit.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Edit.gif\" alt=\"Edit image\" width=\"1458\" height=\"927\" class=\"alignnone size-full wp-image-10696\" \/><\/a><\/p>\n<h1>What are Edit&#8217;s features?<\/h1>\n<p>Edit is still in an early stage, but it has several features out of the box. Here are some highlights!<\/p>\n<h2>Lightweight<\/h2>\n<p>Edit is a small, lightweight text editor. It is less than 250kB, which allows it to keep a small footprint in the Windows 11 image.<\/p>\n<h2>Mouse Mode Support<\/h2>\n<p>As a modeless editor with a Text User Interface (TUI), all the menu options in Edit have keybindings (which you can see next to the menu options).<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/MouseModeSupport.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/MouseModeSupport.gif\" alt=\"Mouse Mode Support image\" width=\"1458\" height=\"927\" class=\"alignnone size-full wp-image-10697\" \/><\/a><\/p>\n<h2>Open Multiple Files<\/h2>\n<p>You can open multiple files in Edit and switch between them with <kbd>Ctrl+P<\/kbd> (or by clicking the file list on the lower-right).<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/MultiFileSupport.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/MultiFileSupport.gif\" alt=\"Multi File Support image\" width=\"1432\" height=\"927\" class=\"alignnone size-full wp-image-10699\" \/><\/a><\/p>\n<h2>Find &amp; Replace<\/h2>\n<p>You can find and replace text with <kbd>Ctrl+R<\/kbd> or select Edit > Replace in the TUI menu. There is also Match Case and Regular Expression support as well.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace.png\" alt=\"Replace image\" width=\"1721\" height=\"333\" class=\"alignnone size-full wp-image-10717\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace.png 1721w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace-300x58.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace-1024x198.png 1024w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace-768x149.png 768w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/Replace-1536x297.png 1536w\" sizes=\"(max-width: 1721px) 100vw, 1721px\" \/><\/a><\/p>\n<h2>Word Wrap<\/h2>\n<p>Edit supports word wrapping. To use Word Wrap, you can use <kbd>Alt+Z<\/kbd> or select View > Word Wrap on the TUI menu.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/WordWrapMode.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2025\/05\/WordWrapMode.gif\" alt=\"Word Wrap Mode image\" width=\"1458\" height=\"927\" class=\"alignnone size-full wp-image-10701\" \/><\/a><\/p>\n<h1>Why build another CLI editor?<\/h1>\n<p>What motivated us to build Edit was the need for a default CLI text editor in 64-bit versions of Windows. 32-bit versions of Windows ship with the MS-DOS editor, but 64-bit versions do not have a CLI editor installed inbox. From there, we narrowed down our options\u2026<\/p>\n<p>Many of you are probably familiar with the \u201cHow do I exit vim?\u201d meme. While it is relatively simple to learn the magic exit incantation, it&#8217;s certainly not a coincidence that this often turns up as a stumbling block for new and old programmers.<\/p>\n<p>Because we wanted to avoid this for a built-in default editor, we decided that we wanted a modeless editor for Windows (versus a modal editor where new users would have to remember different modes of operation and how to switch between them).<\/p>\n<p>This unfortunately limited our choices to a list of editors that either had no first-party support for Windows or were too big to bundle them with every version of the OS. As a result, Edit was born.<\/p>\n<h1>Happy Editing!<\/h1>\n<p>Edit will be rolling out to the <a href=\"https:\/\/www.microsoft.com\/windowsinsider\/\">Windows Insider Program<\/a> in the coming months. Edit is now open source, so you can <a href=\"https:\/\/github.com\/microsoft\/edit?tab=readme-ov-file#build-instructions\">build the code<\/a> or <a href=\"https:\/\/github.com\/microsoft\/edit?tab=readme-ov-file#installation\">install it<\/a> from our GitHub repository.<\/p>\n<p>If you have any feedback or questions, please reach out to the team on the official <a href=\"https:\/\/github.com\/microsoft\/edit\">Edit repository<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Edit? Edit is a new command-line text editor in Windows. Edit is open source, so you can build the code or install the latest version from GitHub! This CLI text editor will be available to preview in the Windows Insider Program in the coming months. After that, it will ship as part of [&hellip;]<\/p>\n","protected":false},"author":101092,"featured_media":10714,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,2,1535,1728],"tags":[],"class_list":["post-10694","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-commandline","category-command-line","category-open-source","category-windows"],"acf":[],"blog_post_summary":"<p>What is Edit? Edit is a new command-line text editor in Windows. Edit is open source, so you can build the code or install the latest version from GitHub! This CLI text editor will be available to preview in the Windows Insider Program in the coming months. After that, it will ship as part of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/10694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/users\/101092"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/comments?post=10694"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/10694\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media\/10714"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media?parent=10694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/categories?post=10694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/tags?post=10694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}