Aptana Studio 3.3.1. Javascript代码完成 [英] Aptana Studio 3.3.1. Javascript code completion

查看:76
本文介绍了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 Source Editor中进行编辑,则不会遇到此问题. .假设您不愿意或无法将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天全站免登陆