Aptana Scriptdoc 未出现在 Code Assist 中 [英] Aptana Scriptdoc doesn't show up in Code Assist

查看:23
本文介绍了Aptana Scriptdoc 未出现在 Code Assist 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照所有说明让我的代码注释显示在 Code Assist 中,但我没有任何运气.目前在 Eclipse 中使用 Aptana 3 插件(这可能是问题吗?)

I've followed all the instructions to get my code comments to show up in Code Assist but I'm not having any luck. Currently using Aptana 3 plugin inside of Eclipse (could that be the issue?)

myObj = {
/** 
* Gets the current foo 
* @param {String} fooId The unique identifier for the foo.
* @return {Object} Returns the current foo.
*/
getFoo: function (fooID) {
    return bar[fooID];
}

}

当我有上面的代码时,该函数会出现在代码辅助中,但没有与之相关的文档.

When I have the above code, the function shows up in code assist, but there is no documentation associated with it.

推荐答案

在 Aptana 支持论坛上发现他们的 Scriptdoc 设置不支持未声明的变量.

Found out on the Aptana support forums that their Scriptdoc setup doesn't support undeclared vars.

如果我把上面的代码改成:

If I change the above code to:

var myObj = {
    /** 
    * Gets the current foo 
    * @param {String} fooId The unique identifier for the foo.
    * @return {Object} Returns the current foo.
    */
    getFoo: function (fooID) {
        return bar[fooID];
    }
}

然后一切正常

这篇关于Aptana Scriptdoc 未出现在 Code Assist 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆