Skip to content

Tern & Closure support

angelozerr edited this page Jul 21, 2014 · 11 revisions

tern-closure provides the closure tern plugin which provides a support for Closure Compiler annotations and the Closure Library

After installing and converting your project as Tern Project (see Tern-Eclipse-IDE), open Project Properties, click on Tern / Modules item and select the closure tern plugin :

Select Closure Plugin

After that you can benefit with goog provide/request completion :

Goog Completion

If you need more completion like goog.dom, etc, you need to copy sources of Closure in your Eclipse project :

Closure source

You must configure this dirs as closure source :

Closure source

tern-closure uses the Closure sources to provide completion for classes :

Completion on DOM

You can use hyperlink to go to the source.

Clone this wiki locally