【问题标题】:Ctags like function code search for javascript with NodeclipseCtags 之类的函数代码使用 Nodeclipse 搜索 javascript
【发布时间】:2026-01-24 16:50:01
【问题描述】:

使用 nodeclipse,当我单击函数名称时,它不会将我带到函数定义所在的模块(例如 c 的 ctags 功能)。 例如,说

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

现在,当我单击函数调用时,Router() - 我希望它转到 node_modules/express/lib/router/index.js?

【问题讨论】:

    标签: javascript ctags nodeclipse


    【解决方案1】:

    使用 tern(您的项目有 .tern-project),当您将鼠标悬停在 Router() 上时,您应该会看到可点击的 Origin。

    阅读更多

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

    Nodeeclipse主代码 https://github.com/nodeclipse/nodeclipse-1/

    燕鸥.java https://github.com/angelozerr/tern.java

    提出问题,并准备好合作。

    【讨论】:

    • 当您说使用 tern 时,它是与 nodeclipse 一起提供的插件吗(或者)它需要从 eclipse 市场安装?我问这个,因为,对我来说,鼠标悬停在代码上时,它只显示两个字段 - (返回?值为“?”,猜猜?为“真”)。
    • 从 0.17 开始,它包含在市场或安装按钮选项中。如有疑问,只需更新 Nodeclipse / Enide Studio nodeclipse.org/updates 阅读更多新闻和历史