在eclipse中配置Aptana对jQuery代码自动提示

在eclipse中配置Aptana对jQuery代码自动提示

步骤

1. 安装Aptana

Help->Install New Software...->Add...->填入Aptana的安装路径(http://download.aptana.com/studio3/plugin/install)->安装->重启Eclipse

2. 安装Jquery插件

Commands->Bundle Development->Install Bundle->选中jQuery->OK

3. 加入jQuery的sdocml文件(此步骤可以忽略

https://github.com/aptana/javascript-jquery.ruble/downloads下载Aptana的压缩包,解压后里面有jquery.1.4.2.sdocml、jquery.1.6.2.sdocml两个文件,根据需要将其中一个放到项目的根目录,有了这个就能对jQuery进行自动提示了。

4. 使用Aptana的编辑器打开js和html文件

eclipse-jee中有自己的默认html和js编辑器,必须用Aptana的编辑器打开才会出现JavaScript提示,右击文件选择Open With->Other...,选择下图中红框中的编辑器:

     

5. 调整编辑器背景色

Aptana的编辑器背景是黑色的,看得很不舒服,换一个主题就行了,具体位置如下:

Window->Preferences->Aptana Studio->Theme

猜你喜欢

转载自yzl495.iteye.com/blog/2322917