Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Benny Chew
PLUS
Benny Chew
Courses Plus Student 2,717 Points

Tips for JavaScript editor with auto completion (like Xcode)

Hi guys, I started learning Xcode / Objective C for a couple of weeks now and I love the auto completion of it. It is so handy! I was wondering if you guys know a trick or a good editor for the Mac with the same (auto completion) tricks? Not only keyword suggestions, but syntax/parameters hints as well... I use Sublime Text. Reason is I want to learn Framer JS and also some jQuery.

4 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Benny,

Auto completion support for languages such as JavaScript is very low as there is no one way to write your code like you would in Xcode which is standardised so it's easier to run auto completion tasks in real-time, the only IDE that has good support for JavaScript would be PHP Storm which isn't free but it has a vast engine that drives it.

Give Chocolat a go. It has in-built Tern support which also analyzes your own code and offers completion for it as well.

Benny Chew
PLUS
Benny Chew
Courses Plus Student 2,717 Points

Thanks a lot Chris! I see they also have WebStorm, I was looking for something like this! Will try the trial.

Benny Chew
PLUS
Benny Chew
Courses Plus Student 2,717 Points

Thanks Dino! Will give it a try, seems like a cool app. I also tried Atom, but not sure which one is better.

Atom's Tern support is still very much a work in progress. Eventually, I'm sure it'll catch up, but for now, it seems that Chocolat offers the best JavaScript completion (at least in my experience).