TextEdit.app is alright, but sometimes you just need a little extra functionality. What is your text editor of choice and why?
I'll keep this post updated in order to create a comprehensive list for future reference. Don't want to play favorites so everything is in alphabetical order and three simple categories.
Free
Can't beat free, right? Here are some great options for the mighty fine price of zero dollars.
CotEditor
Free | Open Source | Website | GitHub | AppStore | Homebrew
CotEditor is a lightweight plain-text editor for macOS written in Swift.
Plain Text Editor
Simple distraction-free notepad.
Visual Studio Code
Free | Website
Visual Studio Code is a free and extensible code editor for building web, desktop, and mobile applications, using any programming language and framework.
VSCodium
Free | Open Source | Website | GitHub | Homebrew
Binary releases of Visual Studio Code without Microsoft branding, telemetry and licensing.
BBEdit
Free (additional features are $49.99 one-time purchase) | Website | Homebrew
It doesn’t suck.® Crafted to serve the needs of writers, Web authors and software developers, and provides an abundance of features for editing, searching, and manipulation of prose, source code, and textual data.
Emacs
Free | Website
An extensible, customizable, free/libre text editor — and more.
VimR
Free | Open Source | GitHub | Homebrew
Project VimR is a Neovim GUI for macOS. The goal is to build an editor that uses Neovim inside with many of the convenience GUI features similar to those present in modern editors.
Paid
Sometimes paid apps have more to offer. Here are some of the most popular options.
Nova
$99 | Website
The beautiful, fast, flexible, native Mac code editor from Panic.
Sublime Text
Sophisticated text editor for code, html and prose - any kind of text file.
Up-and-coming
Still a bit rough around the edges, these apps are in development but showing a lot of promise. Possibly your next favorite editor.
CodeEdit
Free | Open Source | Website | GitHub | Homebrew
A lightweight, natively built editor. Open source. Free forever. CodeEdit is currently in development and not yet ready for production use. You can test the latest alpha build if you would like, but be warned, you will find many bugs and incomplete features.
Pulsar
Free | Open Source | Website | GitHub | Homebrew
A Community-led hyper-hackable text editor, forked from Atom, built on Electron. Designed to be deeply customizable, but still approachable using the default configuration.
The list is of course very incomplete, considering the amount of text/code editors available. Let me know what you use and I'll add it.
Under free I would add Emacs (https://emacsformacos.com/) and vimr (https://github.com/qvacua/vimr)
Also don't forget the venerable BBEdit, which is almost as old as the Mac is (https://www.barebones.com/products/bbedit/)
Added, thanks!