Aptana是一個開發(fā)JavaScript的很好的ide,aptana提供了eclpse的插件,用起來幾乎很上手而且很簡單、方便,不過安裝以后必須有Firefox支持。 因為aptana需要firefox的JavaScript調(diào)試工具做調(diào)試,因此如果你安裝過了aptana之后系統(tǒng)沒有安裝firefox,那么,還是推薦你安裝一個firefox吧。即使不用這個瀏覽器也可以安裝上,省的出現(xiàn)一些其他的不可預料的問題。
手動配置link的方式安裝aptana插件。這樣可以避免許多問題。筆者前幾次安裝aptana插件都失敗,原因就在于是自動下載安裝的,可每次都會出現(xiàn)錯誤,而改用手動配置link的方式安裝后,一切問題迎刃而解了。
安裝教程:
1、先去下載aptana eclipse的插件
強烈推薦手動下載插件的方式而不是在線升級的方式,尤其你用的不是eclipse而是完整安裝版的myeclipse。
2、手動以link方式安裝aptana插件
首先在你的eclipse目錄下打開eclipse文件夾:
3、然后將下載后的aptana插件文件解壓縮到任何目錄(筆者解壓縮到了eclipse所在的目錄)。再在links文件夾中新建一個文本文件aptana.link,其內(nèi)容形式為:
path={aptana插件存放的位置}
例如筆者的link文件內(nèi)容為:
path=C:\Program Files\Eclipse-6.0M1\eclipse\Aptana
4、然后,重啟myeclipse就可以發(fā)現(xiàn)可愛的aptana的界面菜單了
(如果安裝過程中出現(xiàn)問題,請留言。)
5、接下來就可以發(fā)現(xiàn)其偉大的特點了。
將Aptana編輯器設置成myeclipse默認的編輯器
如果我們想把aptana的編輯器設置成myeclipse默認的編輯器的話,那么可以在多做一點事情,這樣方便我們今后的開發(fā)了。筆者也正式如此。
6、在Window菜單中找到Preferences,打開的菜單中左邊的樹中展開General,找到editor
點擊File Associations,然后在上邊選擇要設置的文件后綴名,在下邊找到aptana相應的編輯器,然后點“default”即可完成默認的設置了。很簡單的,試試吧。
Myeclipse 安裝Aptana3.2 插件安裝步驟:
1、下載aptana3.2 Eclipse Plugin插件.
下載地址:http://update1.aptana.org/studio/3.2/024747/index.html
2、解壓出features與plugins文件夾,COPY到
D:\Program Files\MyEclipse Blue Edition\MyPlugins\aptana3.2
3、在D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9.0 M2\dropins在新建文件aptana.link, 內(nèi)容是
path=D:\\Program Files\\MyEclipse Blue Edition\\MyPlugins\\aptana3.2 (注意斜線的方向,反了不行!Myeclipse會找不到路徑。
4、刪除D:\Program Files\MyEclipse Blue Edition\MyEclipse Blue Edition 9.0 M2\configuration文件夾中org.eclipse.update文件夾
5、重啟 Myeclipse,看到了界面
1 配置:
2配置 Code Assist,對我來說很重要,Javascript學的不咋地啊
3配置 File Association,文件關聯(lián),主要有 htm,html,xml,javascript,css(這個沒找到) 【貌似不支持使用Aptana Editor 來打開JSP文件】
4再配置一些設置之后,重啟Myeclipse,試試看,打開一個 html,呵呵,js有代碼提示幫助,Enjoy it!
在線安裝:
1、aptana 插件是通過下面的方法
2、輸入插件提供方提供的下載地址
http://download.aptana.com/studio3/plugin/install
3、根據(jù)提示next就行
官方介紹:
1、Save the above file to an easy-to-find location.
2、Open Eclipse distribution, and go to Help -> Install New Software....
3、Click the Add... button to open the Add Site window.
4、Click the Archive... button, and select the file saved in step 1.
5、Select the appropriate plugins to install, and click Next -> Next.
6、Click the Finish button.