Install spket in Eclipse:
1. Download The spket-1.6.4.1.zip package, decompress the package, copy the content in the two folders of eclipse to the corresponding folder under the eclipse installation directory, and restart eclipse;
2. Window → preferences → spket → JavaScript profiles → new;
3. Enter "extjs" and click "OK". Select "extjs" and click "add library". Then, select "extjs" from the following menu ";
4. Select "extjs" and click "add File". Then. in the/ext4/src directory, select "Ext. jsb2 "file, pay attention to must also be ext-all.js and ext-all-debug.js these two JS files choose to come in, otherwise even if the configuration will not prompt;
5. Select the plug-in you want to load. Here we choose extjs;
6. Set the new extjs profile, select and click the "defalut" button on the right hand side of the "javascript profiles" dialog box;
7. Set the default JS open mode, window → preferences → General → editors → file... Select JS or create a new setting. The default open mode is spket JavaScript Editor (default) (set spket as the default JS editor ).
In the above steps, we will find that there is no file named Ext. JSB in the ext JS folder.
Solution: Find an ext file on the Internet and copy the Ext. jsb2 file to the SRC folder in the ext JS directory (the file must be correct here, otherwise it will not be prompted automatically ),
Then follow the steps above. After the configuration is complete, open the JS file before closing and use the spket JavaScript editor to open the file, there will be related ext JS prompts.