Eclipse Installation plugin supports JQUERY,JS Smart tips

Source: Internet
Author: User

With the jquery plugin in use recently, you need to install the Eclipse plugin to support the jquery smart tip, search the web for a bit, three plugins are commonly used to support jquery Smart tips:
1.jQueryWTP
2.Spket
3.Aptana

Before installing the plugin, you need to install eclipse, if you have installed eclipse, you can directly see the following plug-in installation method, I use Fedora 12, the operation is as follows:
1. Directly open "Application"-"System Tools"-"terminal"
2. Enter the command "su", this command is temporarily switch to the root user
3. Enter the root user's password
4. Enter the command "Yum install Eclipse"
5. After successful installation, you can open the view version of Eclipse 3.5.1 in the "Application"--"programming"--"eclipse", of course, you can also download the installation directly, here is no longer elaborate, after installation can install the relevant plug-in.

The following are the three plug-in installation methods, respectively:
First, the installation method of JQUERYWTP (official):
Step1:download Jquerywtp_version.jar
Step2:find you Eclipse Plugin org.eclipse.wst.javascript.ui_xxxxxxx.jar,backup the Plugin.
Step3:double Click the jar file or run with command Java-jar JqueryWTP.version.jar
Step4:on the opened swing ui,choose Org.eclipse.wst.javascript.ui_xxxxxxx.jar,and output dir.
Step5:click Generate button.
Step6:replace old Org.eclipse.wst.javascript.ui_xxxxxxx.jar file with the generated file.
Step7:restart Eclipse.
Step8:open a HTML file,edit JS content.

Home page of the JQUERYWTP plugin project: http://www.langtags.com/jquerywtp/
But after downloading the Jquerywtp0.31focn.jar, according to the installation of the tutorial is mentioned in a plugin directory Org.eclipse.wst.javascript.ui_ Xxxxxxx.jar file, but my eclipse directory would not be able to find this file at all, so it is not possible to use the JQUERYWTP plugin smart hints.

Then look closely at the homepage of the JQUERYWTP plug-in project, and there is a word that Eclipse's WTP supports JavaScript's code completion, but it's simple, and the purpose of not supporting JQUERY,JQUERYWTP is to let eclipse The WTP supports jquery, and it needs to be explained that the plugin is also supported for Eclipse WTP-based tools such as MyEclipse.
According to this sentence you can guess the reason why the Org.eclipse.wst.javascript.ui_xxxxxxx.jar file under the plugin directory could not be found, possibly without the Eclipse WTP plugin installed, Because the following two methods are installed smoothly and support jquery smart hints, the guesswork here is not yet validated.

Second, the installation method of Spket (two kinds of ways):
1. Online Installation: Help->install New software...->add...->name: "Spket",
location:http://www.spket.com/update/Download complete restart eclipse.
2. Manual installation: To http://www.spket.com/download.html download the Plugin version, the current version is 1.6.17. Download the extract and place it directly in the Dropins directory of Eclipse and restart eclipse.
3. Download the jquery file (to download the development version).
4. Set Spket, Windows-Preferences, Spket, JavaScript Profiles-New, enter "jquery" Click OK, select "jquery" and click "Add Lib Rary "then select" jquery "in the drop-down bar, select" jquery "and click" Add file ", then select the Jquery.js file you downloaded; set to default;
5. Set JS Open mode (This step is important, do not set, there will be no smart hint of jquery), Window-Preferences->general-> editors-> File associations- > select *.js to set the Spket JavaScript editor to default.
6. Create a new JS file, jquery automatic prompt!!

Third, the installation method of Aptana:
Aptana installation is relatively simple, directly installed to support the smart tips of jquery, and smart hints function is also relatively strong, according to the following installation can be used, it is strongly recommended that beginners can use this method to install:
1. Online Installation: Help->install New software...->add...->name: "Aptana",
Location:http://download.aptana.com/studio3/plugin/install Download complete reboot Eclipse,aptana plugin installed successfully, support JavaScript smart prompt function, However, jquery smart hints are not supported, and plugins that support jquery smart hints need to be installed. (See http://www.aptana.com/products/studio3/download.html for the latest address)
2.window->my Studio Open the Aptana home page, click on the top plugins, select jquery Support under Ajax, click Get it to install the jquery Smart Tip plugin:

3. A new JS file will have a jquery smart hint.

In addition, if the three plug-ins are installed successfully, want to choose one of the plug-in use, it should be done? The method is as follows:
Window->preferences->general->editors->file associations, select "*.js" and select "Aptana JS Editor" or "Spket JavaScript Editor is set to default.

Original Digest from: http://www.cnblogs.com/shulin/archive/2010/08/09/1796146.html

Eclipse Installation plugin supports JQUERY,JS Smart tips

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.