javascriptctagsnodeclipse

Ctags like function code search for javascript with Nodeclipse


With nodeclipse, when i click on a function name, it doesn't take me to the module where the function definition is there (like ctags feature for c). for example, say

var express    = require('express'); 
var router = express.Router();

Now when i click on the function call, Router() - i expect it to go to node_modules/express/lib/router/index.js?


Solution

  • With tern (your project has .tern-project) when you mouse over Router() you should see Origin that is click-able.

    read more

    https://github.com/angelozerr/tern.java/wiki/New-and-Noteworthy-0.7.0

    Nodeclipse main code https://github.com/nodeclipse/nodeclipse-1/

    Tern.java https://github.com/angelozerr/tern.java

    Raise issues, and be ready to collaborate.