Skip to content

Tern & RequireJS support

angelozerr edited this page Sep 9, 2015 · 7 revisions

tern.js provides the requirejs tern plugin which gives a support for RequireJS.

After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the requirejs tern plugin :

Check RequireJS PLugin

After that you can benefit with require.js completion for require object as well as on other variables and methods provided by RequireJS:

Completion for RequireJS

You have completion too for object literal properties :

Completion for RequireJS

When you apply completion, it generates a property key/value :

Completion for RequireJS

Clone this wiki locally