Aptana Studio 3.3.1.Javascript 代码补全 [英] Aptana Studio 3.3.1. Javascript code completion

查看:37
本文介绍了Aptana Studio 3.3.1.Javascript 代码补全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Aptana 的新手,我刚刚开始了一个自然是 Web 的项目.

I'm new to Aptana and I've just started a project which nature is Web.

我有两个代码完成问题,在网上做了一些研究,但没有找到解决方案.

I have two issues with code completion, did some research online but didn't find the solution.

1) 我有这两行代码.

1) I have this two lines of code.

         var script = document.createElement("script");
         script.type = "text/javascript";

当我输入script."时,我希望在第二行有代码完成,我有一些建议.但是我没有建议 Script 的属性,特别是在这个例子中没有建议属性type".

I expect to have code completion in the second line when I type "script. ", and I have some suggestions. But I don't have suggested Script's attributes, in particular in this example the property "type" is not suggested.

2) 我不能在文档"对象或createElement"函数上转到声明".

2) I cant' "Go to declaration" on "document" object or "createElement" function.

我不知道这些是自动完成功能不受支持还是我遗漏了某些东西,也许是某些配置.

I don't know if these are unsupported features of autocompletion or I'm missing something, maybe some configurations.

只是为了比较,我在 RubyMine 中使用了这两个功能.

Just to compare, I've both features working in RubyMine.

提前致谢!罗多

推荐答案

我假设您在 HTML 编辑器中编写 Javascript,因为我认为如果您在 Javascript 源代码编辑器中进行编辑,您就不会遇到这个问题.假设您不愿意或无法将 Javascript 分成 .js 文件,新手 回答了类似(相同?)问题这里使用 一个我没有尝试过的补丁.

I am going to assume you are writing Javascript inside the HTML editor, because I think if you were editing in the Javascript Source editor you would not be having this problem. Assuming that you are unwilling or unable to separate your Javascript out into .js files, newbie answered a similar (the same?) question here with a patch that I have not tried.

所以你有几个选择(如果我的假设是正确的):

So you have a couple of options (if my assumptions are right):

* Use the Javascript Source editor (by right clicking and choosing Open With > Other)
* Try the patch

这篇关于Aptana Studio 3.3.1.Javascript 代码补全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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