在Aptana的Web Project中打開js文件有JavaScript的自動提示,可是在JavaEE項目中卻沒有。javascript
eclipse-jee-juno,即Eclipse 4.2的JavaEE IDEhtml
Aptana Studio3.2java
1. 安裝Aptanajquery
Help->Install New Software...->Add...->填入Aptana的安裝路徑(http://download.aptana.com/studio3/plugin/install)->安裝->重啓Eclipsegit
2. 安裝Jquery插件github
Commands->Bundle Development->Install Bundle->選中jQuery->OKeclipse
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文件htm
eclipse-jee中有本身的默認html和js編輯器,必須用Aptana的編輯器打開纔會出現JavaScript提示,右擊文件選擇Open With->Other...,選擇下圖中紅框中的編輯器:
5. 調整編輯器背景色
Aptana的編輯器背景是黑色的,看得很不舒服,換一個主題就好了,具體位置以下:
Window->Preferences->Aptana Studio->Theme