|
|
用Eclipse开发Ext,想要相应的自动提示?安装spket插件即可。方便,强大。步骤如下:
1、选择Help -> Software Updates -> Find and Install...-> Search for new features to install ->New remote site...
Name: "Spket", Url: http://www.spket.com/update/。下载完毕重启Eclipse。
2、Window -> Preferences -> Spket -> JavaScript Profiles -> New ->输入“ExtJS”点击OK -> 选择“ExtJS” 并点击“Add Library”然后在下拉条中选取“ExtJS”;选择 “ExtJS”并点击“Add File”,然后在你的./ext-x.x/resources目录中选取“resources.jsb” 文件;
3、Window -> Preferences -> Spket -> JavaScript Profiles -> 选中ExtJS -> 在右边点击Default按钮,把ExtJs设置成默认。
4、Window -> Preferences ->General-> Editors-> File Associations-> FileTypes选择 *.js,把其对应的associated editors列表里的 Spket JavaScript Editor设置成Default。
5、重启Eclipse,大功告成。 |
|