Under the jsp page, let eclipse fully support HTML/JS/CSS smart tips

When we usually use eclipse to develop jsp pages, the intelligent prompt effect is not ideal. Today, it took two hours to find out that eclipse can also intelligently prompt HTML/JS/CSS code like Visual Studio 2008. Using the plug-in that comes with eclipse, no additional Install the plug-in, the specific steps are as follows

 

1. Open eclipse→Windows→Preferences→Java→Editor→Content Assist

Modify the value of Auto Activation triggers for java to: zjava Click the apply button

As shown in the figure:

 

2. Continue to open JavaScript→Editor→Content Assist

Modify the value of Auto Activation triggers for javaScript to: zjs ​​Click the apply button

As shown in the figure:

 

3. Continue to open web→html Files→Editor→Content Assist

Modify the value of Prompt when these characters are inserted:: zhtml Click the apply button

As shown in the figure:

 

4. Open File→Export→Genral→Preferences→Export a file to any location, then open the file with Notepad, Ctrl+F to find zjava and change its value to .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW

Find zjs again and change its value to .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW

Find zhtml again and change its value to <=.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW

save document.

5. Open eclipse→File→Import→Genral→Preferences, after importing the file you just edited, all settings are completed, now go test it, does it feel much better than before, haha,,, if you have any questions, you can directly reply to me and tell me .

 

以下是调试成功后的图片:

 

 

 

 

 

 

Guess you like

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