Code Editor For Mac

  • VS Code is a Free, Open source code editor can run on everywhere having syntax highlighting, autocomplete with IntelliSense, Debug code right from the editor, Git commands built-in and More effective extensible and customizable features with add-ons and themes.
  • I searched for this and found Maudite's question about text editors but they were all for Windows. As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides what I know of.

There is no shortage of options for text editors geared towards developers on the Mac, but TextMate is our top pick. It wins out thanks to its massive programming language syntax support, helpful code snippets, expandability, and integration with the OS X terminal.

Notepad++ is one the simple code editor for PC windows & MAC. It is an open source program and is the extended version of in built Notepad. Notepad++ is supported by Windows, Linux, BSD and Mac OS. CodeLite is an open source code editor and IDE specialized in C, C++, PHP and JavaScript (mainly for backend developers using Node.js) programming languages. It is available for Mac OS X, Windows and Linux. I searched for this and found Maudite's question about text editors but they were all for Windows. As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides what I know of.

Editor

TextMate

BBEdit is a beautiful code and HTML editor for Mac. It comes with all the advanced features of a powerful code editor. Syntax highlighting, advanced find and replace, autocompletion, quick lookup, multiple tabs, splittable editing windows and much more.

Code

Platform: Mac OS X
Price: Free!
Download Page

Features

  • Column Selections and Column Typing
  • Expand Trigger Words to Code Blocks With Tab-able Placeholders
  • Support for Darcs, Perforce, SVK, and Subversion
  • Works As External Editor for (s)ftp Programs

Note: This feature list is borrowed from the TextMate site and the links will take you directly to TextMate's pages containing more info on each feature.

Advertisement

Where It Excels

Code Editing Software

TextMate is excellent. It's as simple as you need it to be, providing only a single window for editing a single document, or it can expand to handling a large file structure. It supports syntax highlighting for practically any programming language you can think of, plus it contains code snippets. These things can be expanded by downloading third-party add-ons. TextMate has great code organization features. It updates frequently enough that you feel taken care of but not so frequently you want to smack it in the face (like with Evernote). You can even use TextMate as your text editor in the terminal with the command mate. If you're looking for a WYSISYG editor, TextMate—and this entire category—is not for you. If you just want to write code in a great editor, you've come to the right app.

Advertisement

Where It Falls Short

Organizing the files you're currently working on could be a little more user-friendly, as it can be a little bit tedious if you don't open your entire work folder immediately at launch. The undo history is so detailed that you can find yourself pressing Command+Z a lot just to get back to the place you wanted. Generally it's just faster to retype it. Overall, though, there's very little to complain about. At one point we complained about its $58 price tag, but now that TextMate is open-source and free it's got almost everything going for it.

Advertisement

The Competition

It's impossible to avoid mentioning SublimeText because it's so similar. It has almost the same support for language syntax as TextMate, and even has a Windows version as well (which is where the app originated, but that Mac version is still very Mac-like). Honestly, whether you use Sublime Text or TextMate is really going to come down to preference. They're both excellent and both, perhaps, a bit too expensive. They also both come with trials, so you can check them both out and decide for yourself.

Advertisement

But maybe you're someone who doesn't want to pay for their programming-friendly text editor. If that's you, there are a couple of other alternatives that don't cost a thing. First, TextWrangler is a capable option with a loyal user base (if they haven't already upgraded to its big brother BBEdit), but it's a little low on capabilities and has an interface that feels pretty dated. Alternatively, there's Fraise (the successor to Smultron), which is another free, capable, but not-as-amazing-as-TextMate (and Sublime Text) text editor.

The other free option that's probably most like TextMate (and Sublime Text, for that matter) is Kod. It supports over 65 languages, is remarkably fast and lightweight, and only comes with one real disadvantage: it's in its early stages of development. When I checked it out earlier this year, however, it was pretty solid. Kod is very much worth a look, even if it hasn't been around for quite as long as the others.

Advertisement

Lifehacker's App Directory is a new and growing directory of recommendations for the best applications and tools in a number of given categories.

Advertisement

Whether you’re a self-confessed script kiddie or black hat, a hobby programmer or professional coder, you need to have an app that’s up to the task. If you choose to do your programming on a Mac rather than a PC, below is a list of the best code editing apps that could be mustered.

Test them out, see which one suits you, and dive on into the sublimely mathematical, perfectly logical world of Mac-based coding.

1. Vim

The number one choice for probably the majority of programmers these days, Vim is the most complete code-editing tool around. It uses much less memory than its rivals, it’s open source, and can be used remotely via SSH.

Related: 3 Useful VIM Editor Tips and Tricks for Advanced Users

That’s not all. Vim works on all Unix platforms (so Windows and Linux as well), and is brimming with keyboard shortcuts that make writing long chunks of code a cinch. It may seem like a lot to take in, but all the shortcuts are designed to be memorable (so d for ‘delete,’ obviously), making Vim rather accessible.

With its vast community churning out a constant procession of plug-ins and add-ons, Vim is a vast, flexible tool that can be used for many of the most popular coding environments (C, Python, you name it).

It’s number one for a reason.

2. Atom

Atom is a fantastic code editor for users of all skill levels. Whether you want to tweak source code or play around with packages, you can do so here. It has a great collaboration tool in the form of Teletype, which lets you seamlessly work on code with fellow users.

You can work in the universal hosting service GitHub from directly within Atom too, doing every function from creating new branches to pushing and pulling code requests. Beyond that, Atom is filled with quality-of-life features like autocomplete, a robust search tool and file browser, and a powerful package manager.

On the downside, Atom is fairly memory-intensive, particularly when handling large files, so be sure that your computer is up to the task RAM-wise before jumping in.

3. Sublime Text

One of the best and simplest coding tools ever available to Mac users. Sublime Text is a notepad-like application that lets you write your code, highlight certain parts using its various syntax detecting algorithms and so on. The app has a number of features including Goto Anything, Multiple Selections, Command Palette, etc. If you think the other apps or things are distracting you while doing your coding work, then you can enable the distraction-free writing mode. It disables everything except for the area where you write your code.

Sublime Text is not free, though you can download the free trial version and it never seem to expires. Nevertheless, if you use and love Sublime Text, it is always good to purchase the license and support the development.

The app is available for Mac, Windows and Linux.

4. BBEdit

This is yet another nice tool for coding programs. BBEdit says it does not suck, and that probably means something good for the coders. The app has a nice interface identical to Sublime Text. The app seems to be inclined towards those who do a lot of HTML coding, and maybe that is why there are a number of options to manipulate webpages in the app. It contains FTP and SFTP support, so there is no issue with uploading your files to your server as soon as you are done writing them. Sounds cool, huh?

Source Code Editor For Mac

5. TextMate

Do you have a load of coding work that needs to be done in a short span of time? TextMate is available to help you out. The app makes coding much easier on your Mac than ever with a number of features it comes preloaded with. Syntax highlighting, Multiple Tabs, and Search and Replace are some of the salient features of the app. If you missed closing a bracket, that happens most of the time you are coding; it completes it automatically for you. So the next time you write a program, there is much less of a chance that it will have errors.

6. Brackets

What is it that you use most often while writing code? Yes, you are right. It is brackets. Brackets by Adobe brings a powerful tool for you to code the next big thing. The app is actually built for HTML coders who build hundreds of webpages a day, or maybe even more. It highlights the syntax making it easier for you to find your code blocks and errors and comes with a Live HTML Development that shows the output of your code without having you save or refresh the page. That is really something cool about this app, isn’t it?

7. Textastic

Textastic for Mac is a simple, yet faster, coding tool that delivers what it promises. With features like Auto Completion, it auto-completes some of your code that you would otherwise have to do yourself, saving you some time that you could use to do something else. While most of the other features remain the same as the apps above, it includes a new feature called iCloud syncing. What it does is let you sync your code across your various Mac machines so that you can pick up where you left off easily.

Conclusion

Coding has become a part of many people’s lives these days, and the apps above should help to get it done more quickly and more efficiently.

This article was first published in March 2014 and was updated in June 2019.

Image credit: Closeup coding on screen by oatawa/Shutterstock