Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried Espresso but it lacks so many important features like no auto-parentheses, no auto-aliging.
What is the most advanced JS editor for OS X?
(please not Emacs for me).

share|improve this question
Duplicate of Best IDE for HTML, CSS, and Javascript for mac on Programmers.SE. – Dori Mar 18 '11 at 3:21
No Emacs? How about Vim then? :) – Robert S Ciaccio Mar 18 '11 at 3:48
@calavera No Vim too. – Chiron Mar 18 '11 at 13:55

I use the free version of Komodo Edit by ActiveState on Mac and PC. Through its plugin architecture it has extensions that let you edit Javascript files wonderfully, with intellisense, code completion, and so on, and it also lets you write Javascript macros. Very cool. I have a JSBeautify macro that formats the code wonderfully as well.

Edited to add sample macro I made in Komodo Edit. The following sorts lines in alpha order:

var appObj = ko.views.manager.currentView.scimoz;
if (appObj.selText == '') {
var docText = appObj.selText;
var ary = docText.split('\n');
ary.sort( function(a,b){
 var a1 = a.toLowerCase();
 var b1 = b.toLowerCase();
 return (a1 > b1) ? 1 : (a1 < b1) ? -1 : 0;
docText = ary.join('\n');
share|improve this answer
I used the paid version of Komodo for years and it's quite good. – Ian C. Mar 18 '11 at 14:06

TextMate + a JavaScript bundle (or this one) are my recommendation.

Coming from a Windows + Komodo background I didn't think TextMate could touch the power of Komodo for scripted languages, but it's proven me wrong time and again. It is such a nice editor once you get over the learning curve. It has extensibility in spades. Deep integration with the underlying OS X shell. Nice diff and git/mercurial/svn integration. And the Bundle community is active, smart and free to use.

share|improve this answer
Plus, when you use TextMate, you're using Duke Nuken 3D, because Texmate 2 is the replacement for Duke Nuken Forever ;-) – Martín Marconcini Mar 18 '11 at 15:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.