Aptana Scriptdoc没有出现在代码辅助中 [英] Aptana Scriptdoc doesn't show up in Code Assist

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

问题描述

我遵循所有的指示,让我的代码注释显示在代码辅助中,但我没有任何运气。目前在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设置不支持未声明的vars。

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没有出现在代码辅助中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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