Add JS prompt in myeclipse

When using myeclipse for development, the automatic prompting function of java is very powerful, but JS is completely absent. It feels like developing with Notepad, and I am not used to it. I deliberately pondered it today, and wrote something here to record it, so as not to forget it later.

1. Install the spket plugin.

a. First go to http://www.spket.com/download.html to download a spket. The Plugin version is a compressed package. After decompression, it is an eclipse folder. There are two files under it, features and plugins. Modify eclipse to spket (personal habits can also be modified, I modified it here).

b. Copy spket to Common\plugins in the installation directory of myeclipse. My local is: D:\Program Files (x86)\MyEclipse\Common\plugins.

c. Create a new spket.link in the MyEclipse 9\dropins directory of the myeclipse installation directory, and the content is the spket folder directory of step b.

My two local directories are:

spket.link目录:D:\Program Files (x86)\MyEclipse\MyEclipse 9\dropins\spket.link

spket.link内容:path=D:\\Program Files (x86)\\MyEclipse\\Common\\plugins\\spket

( Be sure to use \\, use \ sometimes can not find the spket plugin ).

d. Restart myeclipse, and check whether there is a Spket option in the left navigation bar of window--->Preferences.

 

2. Add JavaScript Profiles in myeclipse.

a. Open myeclipse and find the JavaScript Profiles in the Spket option in the left navigation bar of window--->Preferences;

b. Click the New button on the right, enter jQuery in the name attribute of the New Profile dialog box (you can also fill it in casually), OK;

c. Select the jQuery node just added, click "Add Library" on the right, select "jQuery" in the Library option, OK;

d. Select the "jQuery" Library added in c, click the "Add File" button on the right, and import the prepared jQuery file library into it. I use jquery-1.8.0.js here;

 

3. Set the default opening method of JS files.

a. Find *.js in the File types on the right side of window--->Preferences--->General--->Editors--->File Associations;

b. Select *.js, select "Spket JavaScript Editor" from Associated editors below, then click the "Default" button next to it, and finally click "OK".

In this way, the default opening method of JS is set.

 

Note: The prompt is only available in the file with the suffix js, and there is still no prompt for writing js in the script tag in the jsp file . depressed.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326620954&siteId=291194637