Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

jason chan
jason chan
31,008 Points

how do you get ternjs to work on sublimetext?

How do you get the ternjs plugin to work on sublimetext? thanks

3 Answers

ellie adam
ellie adam
26,376 Points

Hi,

Try these links ... https://github.com/marijnh/tern_for_sublime http://emmet.io/blog/sublime-tern/

http://meteorpedia.com/read/Sublime_Text install Package Control (https://sublime.wbond.net/installation) install TernJS (sublime-tern) plugin (cmd+shift+p -> install package -> sublime-tern -> restart sublime) cd to Sublime Text packages directory Linux: ~/.config/sublime-text-3/Packages Mac OS X: ~/Library/Application Support/Sublime Text 3/Packages cd sublime-tern/ternjs/plugin (or if it doesn't exist, mkdir -P TernJS/ternjs/plugin and cd there) download meteor.js file to here, ctrl-shift-p and TernJS: Reload. And then:

Create a new sublime project, save it (in the root directory of your project!), add files edit project configuration (menu->project->edit project) edit the json file in this manner:

ellie adam
ellie adam
26,376 Points

Yes! I like emmet too.

jason chan
jason chan
31,008 Points

Thanks ellie.

I got it to work it's not as good as emmet though. EMMET for life.