Eclipse環(huán)境下Spket插件的安裝方法(轉(zhuǎn))
轉(zhuǎn)載:http://www.cnblogs.com/shulin/archive/2010/08/09/1796146.html
最近工作中用到j(luò)Query插件,需要安裝eclipse插件才能支持jQuery智能提示,在網(wǎng)上搜索了一下,常用的有三個(gè)插件支持jQuery的智能提示:
1.jQueryWTP
2.Spket
3.Aptana
一:jQueryWTP
通過官方介紹安裝不成功;網(wǎng)址:http://www.langtags.com/jquerywtp/?page_id=11
在我的本機(jī)已經(jīng)安裝了org.eclipse.wst.jsdt.core_1.1.202.v201208171701.jar包的,經(jīng)它一番折騰后,此插件在Eclipse中顯示為“?”狀態(tài)。只好卸載。
二:Spket
1.在線安裝
Help->Install New Software...->Add...->Name: "Spket",
Location:http://www.agpad.com/update/ 下載完畢重啟Eclipse.
2.手動(dòng)安裝
到http://spket.com/download.html下載 Plugin 版本,當(dāng)前版本為1.6.23。
下載解壓后直接放置于Eclipse的dropins目錄下,重啟Eclipse.
3.下載jQuery
到http://jquery.com/download/下載最新的jQuery文件,目前是1.9.0,(development jQuery 1.9.0)。
4.設(shè)置Spket
Window -> Preferences -> Spket -> JavaScript Profiles -> New,輸入“jQuery”點(diǎn)擊OK; 選擇“jQuery” 并點(diǎn)擊“Add Library”然后在下拉條中選取“jQuery”; 選擇 “jQuery”并點(diǎn)擊“Add File”,然后選中你下載的jQuery.js 文件;設(shè)成Default;
5.設(shè)置js打開方式
Window -> Preferences ->General-> Editors-> File Associations-> 選擇*.js,將Spket JavaScript Editor設(shè)為Default。
6.新建一個(gè)js文件,jQuery自動(dòng)提示!
三:Aptana
參考官方文章:http://www.aptana.com/downloads/start
復(fù)制代碼
Installing via Eclipse
Please copy the following Update Site URL to your clipboard and then follow the steps listed below to add this URL to your Available Software Sites list. Attempting to access this URL using your web browser will return an Access Denied error.
http://download.aptana.com/studio3/plugin/install
1.From the Help menu, select Install New Software... to open the Install New Software dialog.
- Paste the URL for the update site into the Work With text box, and hit the Enter (or Return) key.
- In the populated table below, check the box next to the name of the plug-in, and then click the Next button.
4.Click the Next button to go to the license page.
5.Choose the option to accept the terms of the license agreement, and click the Finish button.
6.You may need to restart Eclipse to continue.
復(fù)制代碼
安裝過程很慢。