myeclipse安装js代码提示插件Spket

来源:互联网 发布:数据采集网络兼职 编辑:程序博客网 时间:2024/04/25 01:46

spket是一个开发JavaScript、jQuery、Ext_js等的开发工具,它可以是独立的IDE,也可以作为Eclipse的插件使用。

Spket插件的安装

下载地址:http://www.spket.com/download.html
我下载的版本是spket-1.6.23.zip,解压文件会得到eclipse文件夹,里面有plugins和features两个文件夹。将eclipse文件夹复制到myeclipse的安装目录下的dropins包中,我的目录路径是D:\Program Files\MyEclipse\dropins。然后重启myeclipse,myeclipse中出现spket插件。


接下来在myeclipse中进行一些配置,点击Windows-->Preferences-->Speket-->JavaScript Profiles-->New,新建一个jquery的文件


然后点击jquery,选择右边的Add Library,选择类型为jQuery


然后点击jQuery,选择右边的Add File添加本地中的jquery文件,选择版本为1.10.2。如果想让jQuery成为缺省的JavaScript Profile,点击Default设为默认。


可以把Spket设为js默认的编辑器,在Window-->General-->Editors-->File Associatior 中找到 *.js 选择Spket JavaScript Editor为默认编辑器。


右键项目名称,点击Reload JavaScript Profile然后再打开JS文件可用看到代码提示了。