Skip to content

Javascript Features

angelozerr edited this page Nov 7, 2015 · 9 revisions

JSDT Editor

Tern.java extends the JSDT plugins to use tern completion, hyperlinks with the JSDT JavaScript Editor.

Note : it should be possible to extend other JavaScript editor with tern by developing an Eclipse plugin.

Completions

angular

Completion on angular variable :

JS Angular Completion Angular

Completion on angular module :

JS Angular Completion Module

Completion on angular elements like $http :

JS Angular Completion Http

Completion on injected service :

JS Angular Completion Service Injection

javascript

Completion on javascript elements like array :

JS Completion Array

Hyperlink

Ctrl+Click on any javascript elements (variable, function) open hyperlink :

JS Hyperlink

If you select "Tern - Go to definition", tern is used to search and select the javascript definition:

JS Hyperlink

It works too if your variable, functions is defined on other files (if script path is well configured).