Best Text Editor For Mac Terminaml

Windows and macOS come pre-installed with a program that can open and edit text files. It's called TextEdit on Macs and Notepad on Windows, but neither are quite as advanced as some of the third-party applications that are available today.

Most of the text editors below need to be downloaded to your computer before you can use them, but all of them provide their own unique set of features that set them apart from the default software programs that come with Windows and Mac.

Why Use a Text Editor?

The best free and paid text editor programs for Mac whether you're a web developer, programmer, technical writer, or anything in between! Word processors like Microsoft Word and Apple's own Pages software are just dandy if you want to write a college paper or fax a cover sheet, but their focus is on page layout and text formatting.

A text editor lets you open a file as a text document, something that can be useful for a number of reasons:

  • Create a file from scratch using a specific programming language, like an HTML or CSS file for use on a website
  • Edit or build files that end with the TXT, REG, XML, CSV, ASP, BAT, AU3, PHP, AHK, SVG, or JS file extension, among many others
  • View the text version of a file that you don't know the format for
  • Quickly remove formatting like bold, custom font types, URL hyperlinks, etc.

If you just need a super quick way to strip the formatting from some text, try this online text editor. To make a .TXT file online without downloading a program, try Edit Pad.

of 04

Notepad++

What We Like

  • Tabbed interface

  • Automatically restores recently opened, unsaved files

  • Auto-completes as you write

  • Includes tons of really helpful features like macros, syntax highlighting, and plugins

  • Opens basically any file as a text document

  • There's a portable version available

Notepad++ is the best alternative notepad application for Windows computers. It’s really easy to use for basic users who just need a text file opener or editor but also includes some really advanced features for those interested.

This program uses tabbed browsing which means you can open multiple documents at once and they'll display at the top of Notepad++ as tabs. While each tab represents its own file, Notepad++ can interact with all of them at once to do things like compare files for differences and search for or replace text.

Probably the easiest way to edit files with Notepad++ is to right-click the file and choose Edit with Notepad++ from the context menu.

This program can open nearly any file as a text document and supports lots of helpful plugins. It also includes a really handy text search/replace function, highlights syntax automatically, auto-completes words, and is the best offline text file converter.

The Notepad++ Find option lets you search for words with criteria like backward direction, match whole word only, match case, and wrap around.

Also supported is bookmarking, macros, auto-backup, multi-page searching, resumed sessions, read-only mode, encoding conversions, and the ability to search for words on Wikipedia and quickly open the document in your web browser.

Notepad++ also supports plugins to do things like auto-save open documents, merge all the text from open documents into one main file, align programming code, monitor open documents to refresh them as they change, copy and paste more than one item from the clipboard at once, and lots more.

Notepad++ lets you save text documents to a huge variety of formats like TXT, CSS, ASM, AU3, BASH, BAT, HPP, CC, DIFF, HTML, REG, HEX, JAVA, SQL, VBS, and many others.

Notepad++ works with Windows only, both 32-bit and 64-bit versions. You can also grab a portable version of Notepad++ from the download page; one is in the ZIP format and the other is a 7Z file.

of 04

Brackets

What We Like

  • Perfect for an uncluttered, minimal working space

  • Supports split-screen editing

  • Includes code-specific syntax highlighting

  • Can view updates for some files live in your web browser

  • Lets you use keyboard shortcuts

  • Works on Windows, Linux, and macOS

  • Plugins are supported to add extra features

What We Don't Like

  • Built mainly for people with code development in mind, so most of the features are centered around project files, displaying code, etc.

Brackets is a free text editor that's primarily meant for web designers, but can of course be used by anyone to view or edit a text document.

The interface is extremely clean and modern and feels really easy to use despite all of its advanced settings. In fact, nearly all of the options are hidden away from plain site so that it's easy for anyone to use, which also provides an extremely open UI for editing.

Code writers might like that Brackets highlights syntax, can split the screen to edit more than one document simultaneously, lets you click one No Distractions button for a really simple interface, and supports lots of keyboard shortcuts so that you can quickly indent, duplicate, move between lines, toggle line and block comments, show or hide code hints, and more.

You can quickly change the file type you're working with to instantly change syntax highlighting rules, as well as change the encoding of the file if you need to.

If you're editing a CSS or HTML file, you can enable the Live Preview option to watch the page update in real time in your web browser as you make changes to the file.

The Working Files area is where you can open all of the files that belong to a single project, and quickly move between them without leaving Brackets.

Some examples of plugins you can use in Brackets includes one to support W3C validation, Ungit to make it easier to use Git, an HTML tag menu, and Python tools.

Brackets comes installed with both a dark and a light theme that you can change at any time, but there are dozens of others that you can install through the Extensions Manager.

Brackets is available as a DEB, MSI, and DMG file for use in Linux, Windows, and macOS, respectively.

of 04

Komodo Edit

What We Like

  • Very attractive and modern interface

  • You can make virtual projects to bring together files from various locations

  • Supports unique features not found in similar text editors

  • Changing the interface setup is easy with one click

  • The tabbed interface is easy to work with

  • Runs on Linux, macOS, and Windows

What We Don't Like

  • It's a bit complex — even with its minimal UI — for people who want just a simple text editor

Komodo Edit is another free text editor with a super clear and minimal design that still manages to pack some awesome features.

Various view modes are included so that you can quickly open or close specific windows. One is “Focus Mode” to hide all of the open windows and just display the editor, and the others show/hide things like folders, the syntax checker results, and notifications.

This program makes it very easy to open text documents even while one is currently open. At the very top of the program is the path to the currently opened file, and you can select the arrow next to any folder to get a list of files, any of which will open as a new tab in Komodo Edit if you select it.

The folder views off to the side of Komodo Edit are also really useful since they let you browse through the file system as well as create virtual projects that link folders and files together to better organize what you need to work on.

A unique feature in Komodo Edit is the area at the upper-left side of the program that lets you not only undo and redo like most programs, but also go back to the previous cursor location, as well as go forward to return to where you just were.

Here are some other Komodo Edit features worth noting:

  • Can connect to a remote FTP server to open and/or save files
  • Supports bookmarking specific areas of the document
  • Lets you switch to a huge number of file types to highlight syntax differently and to save under that format
  • The 'Go to Anything' search box lets you search for files to open, install add-ons, run scripts and commands, open menus, install other languages, change the color scheme, and more
  • Recently closed tabs and files are easy to re-open
  • Lets you preview files in a web browser
  • Templates can be built out of existing files
  • A 'Watch File' option can open a document in a new window for reference withouting being added to the tabbed list of files you're editing
  • Records macros that can be played back to repeat things

This text editor works with Windows, Mac, and Linux.

of 04

Visual Studio Code

Best text editor for windows

What We Like

  • Whole folders can be opened at once to open all of the text files

  • A minimal interface is just one click away

  • Supports tabs for easy file tracking

  • Includes a debugger; perfect for source code editing

What We Don't Like

  • Centered primarily around editing and debugging code, so it could be too much for the average user

  • Settings are difficult to change

Visual Studio Code is a free text editor that's used primarily as a source code editor.

The program is extremely minimal and even has a 'Zen Mode' option one click away that immediately hides all the menus and windows, and maximizes the program to fill the whole screen.

The tabbed browsing interface seen with other text editors is supported in Visual Studio Code as well, which makes it really easy to work with multiple documents at once.

You can also open entire folders of files at once if you're working on a project, and even save the project for easy retrieval later.

However, this text editor probably isn't ideal unless you plan to use it for programming purposes. There are entire sections dedicated to debugging code, viewing command outputs, managing source control providers, and even using a built-in Command Prompt.

The settings are also not as intuitive to adjust since you have to modify them using the text editor; the settings are entirely text-based.

Here are some features you might find useful in this program:

  • You can open whole folders at once from the right-click context menu
  • A 'Change All Occurrences' option makes it easy to select and edit text you want to change throughout the entire document in one sweep
  • Similar is the 'Rename Refactoring' option to change the name of a symbol in every instance of it across all the documents in your project
  • Opening recently closed documents is easy since they're listed in the same place
  • The 'IntelliSense' feature helps to automatically fill in code based on surrounding text and the location of the cursor in the document
  • Files can be auto-saved if you turn the option on
  • A document can quickly be reverted back to the state it was in when you last saved it
  • The editing space can be split into multiple windows for side-by-side reading and editing
  • Dozens of keyboard shortcuts are allowed and fully editable, such as one to copy/paste an entire line of code directly above or below the current position
  • You can change the color theme of the program as well as the theme of icons
  • Extensions can be installed to add more features to Visual Studio Code, such as one to debug JavaScript code in the Chrome browser and another to run programming code directly from the text editor
  • When searching for text strings, you can define whether to match the case and/or the whole word

Visual Studio Code can be installed on Windows, Mac, and Linux computers.

Text editors are notoriously divisive. Everyone has their own preferences, and each of those opinions are valid. What works for one person, task, or project might not work for another. We all find productivity in different places.

That’s why coming up with a list of the “best” Mac text editors is quite hard. There’s a chance we’ll miss your favorite, or include a cut-price freebie that doesn’t do half the tasks you need on a daily basis.

But that’s OK, because you can tell us all about it in the comments at the end.

Free Text Editors

The following is a list of completely free text editors, with no paid upgrades or extra purchases. You might think that free means “lacking in features,” but that’s not the case with these.

Atom

Atom tries to be a bit of everything, and for the most part it succeeds. It’s a project from hosting and version control maestro GitHubNot Just for Coders: 9 Ways To Use GitHub For Creative WorkNot Just for Coders: 9 Ways To Use GitHub For Creative WorkGitHub is known for the great features it can offer programmers, but it's not only for them. There are plenty of other creative uses for GitHub. Here are nine you can explore.Read More, and it’s completely open source and free to use. Don’t let the price tag put you off; Atom has some serious potential under the hood.

Describing itself as “a hackable editor for the 21st century,” Atom is a great starting point for beginners. It’s a basic text editor out of the box, with optional packages that add more complex functionality. These include a full integrated development environment (IDE) known as Atom-IDE.

There’s support for Git and GitHub, with no need for additional packages. When you want to add features and language support, there’s a package manager which makes this easy. You can also customize the interface to your liking, another important aspect of any such serious tool.

One standout package is Teletype for Atom, a real-time collaboration feature that allows you to work on projects with others. Atom is also cross-platform, so you can transfer operating systems while maintaining familiarity with your favorite editor.

Download:Atom

TextWrangler

TextWrangler is one of the most user-friendly examples of a text editor, with a price tag to match. Now hosted on the Mac App Store, TextWrangler offers an old-school feel, rock-solid performance, and the option of graduating to a more powerful yet familiar tool (BBEdit, below) if you feel the need.

It’s another great entry point for learning to code or use text editors in general, whether you’re writing simple AppleScript projects, editing CSS, or building a website in HTML. It’s also a good choice if macOS’ built-in editor TextEditMake TextEdit More Powerful With These 9 Hidden FeaturesMake TextEdit More Powerful With These 9 Hidden FeaturesNative Mac editor TextEdit has a lot of powerful features under the hood, so here's how to find them.Read More comes up short when editing plain text.

The app isn’t just a stripped-down freebie though. It offers a wealth of powerful tools like grep pattern matching, multi-file search and replace, varied themes, and syntax coloring options. You can also work on files remotely via FTP and SFTP.

It lacks some of the fancier features seen in the premium packages, notably a preview pane to view changes in real time. It feels and behaves like a native macOS app, which makes it particularly user-friendly compared to some of the other examples on this list.

Download:TextWrangler

Vim

Now for something completely different: Vim is a command line-based text editorVim Is Awesome: Make It Better With These 5 CustomizationsVim Is Awesome: Make It Better With These 5 CustomizationsText editors might not be sexy, but they are important. One of the most powerful Linux text editors is VIM (short for, Vi Improved), and here we show you how to extend its functionality further.Read More that comes with macOS. Simply open Terminal, type vim, and hit Enter. You’re now using one of the most respected text editors of all time, but it’s not without a steep learning curve.

Fortunately, Vim comes with a stack of documentation to help you learn how to use it. This includes quick reference and help documents, plus a 30-minute tutorial to get you up and running. Be warned: even figuring out how to access the tutorials is a lesson for those unfamiliar with the command line.

Like other powerful-yet-complex applications, you can accomplish a lot with Vim if you know how to use it properly. This knowledge won’t come overnight, but in a few years you’ll likely be able to accomplish more than in a comparable GUI-based application.

Despite Vim being built into the OS, you might also be interested in MacVim. This is a slightly more user-friendly port, with full menu bar controls for functions and a more up-to-date version of Vim than that maintained by Apple. You can open, save, and access recent documents like you would in other GUI-based editors, which makes it slightly less intimidating for newbies.

Download:MacVim

GNU Emacs

Another great free option with an off-putting learning curve, GNU Emacs is the “free as in libre” version of the Emacs text editor. First released in 1976, Emacs is one of the longest-running open source projects, and it still receives updates today.

Emacs is known for its unique methods of getting work done. It relies on a programming language known as Emacs-Lisp, a fork of the Lisp language that was originally specified in 1958. You’ll need to use Emacs-Lisp for even the most basic functions of editing, but it’s also used to expand the editor beyond its humble text-based roots.

These expansions include an email client, news reader, file manager, and games like Snake and Tetris. Under the hood, though, it’s still a basic text editor with features like context-aware editing and support for syntax coloring. There’s full Unicode support and a packaging system for adding new features.

Like Vim, Emacs requires a commitment to learn to use it long before you understand why so many people swear by it. While GNU Emacs is one fork, XEmacs is another that’s worth investigating if you like the sound of this command line editor.

Download:GNU Emacs | XEmacs

Visual Studio Code

Like Atom, Visual Studio Code is a relative newcomer in the text editing space. Not to be confused with Visual Studio, Microsoft’s full-power IDE with a price tag to match, Visual Studio Code is a lightweight text and script editor built around the concept of expanding support with plugins.

Best Text Editor For Mac Terminal

There are plugins for writing and running shell scripts in Code, for penning markdown documents, and even writing AppleScript. That’s right; you can use Microsoft’s text editor to create scripts that will only work on Apple machines.

The Visual Studio Code marketplace turns the app into a Swiss Army knife of code, text, and script editing. A reliance on plugins means the app is lightweight and responsive from the start, as you’re not lugging around features and functionality you’re never going to use.

Which plugins are worth getting? Our roundup of Visual Studio Code plugins will answer that for you.

Code uses an attractive dark theme, and it doesn’t feel like a lazy port of the Windows version either. It’s worth a shot, particularly if you don’t get on with the likes of Vim and Emacs. Check out our top tips for boosting productivity in Visual Studio Code10 Essential Productivity Tips for Visual Studio Code10 Essential Productivity Tips for Visual Studio CodeVisual Studio Code blows other programming text editors out of the water. It's free, open source, lightning fast, and packed with productivity features.Read More to learn more.

Download:Visual Studio Code

Premium Text Editors

If you’re looking for a text editor to use at work, or you’re at a stage where your tools can have a serious impact on your productivity and paycheck, you should consider one of these. Luckily they all come with a decent free evaluation period, so you can try before you buy.

TextMate

Powerful, simple, and lightweight, TextMate is the preferred choice of many Mac professionals, and it’s not hard to see why. This editor has support for a range of languages and syntax, tabs, and a language-specific approach that can save you time and effort.

TextMate incorporates snippets, macros, and scoping features that vastly speed up workflow without stepping into full IDE territory. The developer aimed to bring “Apple’s approach to operating systems into the world of text editors” and that’s a fairly good summation of why so many love TextMate.

Despite development stalling from time to time, TextMate maintains a die-hard following of professional users. This has given way to an extensive database of documentation and screencasts, which should help new users get up to speed.

It’s a simple tool to start using, with a clean UI and fair price point. You can download TextMate free for evaluation purposes, though the app doesn’t seem to bother you for registration credentials or a serial number.

Download:TextMate ($60)

Sublime Text 3

Best Text Editor For Mac Terminaml

Sublime Text is a self-described “sophisticated text editor” that markets itself as a code, markup, and prose editor. It’s probably overkill for the simplest text editing tasks though, considering it costs $80 for a license.

For those who need a powerful tool, Sublime Text delivers a wealth of features and functions11 Sublime Text Tips for Productivity and a Faster Workflow11 Sublime Text Tips for Productivity and a Faster WorkflowSublime Text is a versatile text editor and a gold standard for many programmers. Our tips focus on efficient coding, but general users will appreciate the keyboard shortcuts.Read More. Some of these are hallmarks of the app, like Goto Anything which lets you open a file and quickly navigate to the relevant line in record speed.

The app creates a project-wide index of all classes used for references, and supports multiple selections so you can change more than one element at a time. To cut down on the time you spend in menus, developers devised the Command Palette for rarely-used functions, and fast project switching with no save prompts.

There’s a vast amount of customizability at your fingertips. Many favor the app for its smooth performance under load and attractive UI. It’s also cross-platform, and you only need a single license to use the app across all your machines and platforms.

Download:Sublime Text 3 ($80)

BBEdit

BBEdit wouldn’t have earned a place on this list were it not for a large userbase that’ll defend it to the death. And that’s just fine, since BBEdit is a mature and powerful text editor that prioritizes performance and reliability above all else.

It’s the quintessential Mac text editor, from the developers who bought you TextWrangler. Despite lacking the freshness of Atom or the crisp UI seen in Sublime Text, BBEdit is built from the ground up for macOS, optimized for macOS, with a macOS approach to text editing.

That means keyboard shortcuts that make sense to the average Mac user, and an approach to text editing that follows many of Apple’s design sensibilities. It also bakes in support for Mac technologies like Bonjour. This removes some barriers for entry seen in other apps, but results in a slightly more cumbersome UI than its rivals.

Best Text Editor For Windows

BBEdit is perfect for HTML and text editing, with support for remote editing via FTP/SFTP. The app is highly customizable, from syntax coloring to menu options, user-defined functions, keyboard shortcuts, and macOS Terminal support right in the app.

Download:BBEdit ($50)

Espresso

Not everyone uses their text editor for building websites, but many who do gravitate toward Espresso. It’s an editor that’s aimed squarely at web developers, and it’s got powerful features to make creating websites a more productive experienceCreating Web Interfaces: Where to StartCreating Web Interfaces: Where to StartWe'll show you how web interfaces break down, then point out the key concepts, tools, and building blocks needed to make yourself a 21st century web designer.Read More.

Best Text Editor For Mac

The big one is a live preview browser, so you can see your changes in real time. The app incorporates Xray layout tools, and CSSEdit visual styling for colors, gradients, shadows, and more. It supports HTML, CSS, LESS, JavaScript, CoffeeScript, Apache, and XML out of the box. More languages are available through plugins.

There’s a laundry list of features that keep users coming back, like customizable snippets and UI, a clean modern design, custom spacing and indentation to keep your code clean, support for tabs, templates and custom templates, powerful find and replace, and multi-line editing for making changes in multiple locations at once.

It’s not cheap at $79, but you can download a trial and see how it works before you commit. It’s a great tool for web developers, but lacking in other areas when it comes to scripting and coding.

Download:Espresso ($79)

So Many Text Editors

There are so many text editors available that we couldn’t possibly include them all, but we thought these were worth a mention if you’re still on the hunt:

Best Text Editor For Mac Terminal Window

  • Coda 2 ($80): Another web development-focused text editor like Espresso; worth a look if you’re in need of such a tool.
  • PhpStorm (from $90): A PHP-focused IDE with a $90 yearly subscription model; ideal for PHP developers but overkill for many other applications.
  • Smultron ($10): A better-than-free text editor with a tidy interface that won’t break the bank.

Remember: The text editor with the most tools isn’t necessarily the best. The best text editor is the one that suits you and meets your expectations. It’s the editor that allows you to get more done. It’s the editor that falls away into the background, allowing you to concentrate on your work rather than the software you use to get your job done.

But you’ve probably got your own favorites in mind already (if you don’t prefer an IDEText Editors vs. IDEs: Which One Is Better For Programmers?Text Editors vs. IDEs: Which One Is Better For Programmers?Choosing between an advanced IDE and a simpler text editor can be hard. We offer some insight to help you make that decision.Read More). We’d love to hear which text editor you get on with the best, and why it works for you. Please add your own suggestions in the comments below!

Explore more about: HTML, Mac, Text Editor, Visual Studio Code.

  1. Please note that TextWrangler is NOT compatible with High Sierra, macOS 10.13. Refer to https://www.barebones.com/support/textwrangler/ for OS version details.