Smart prompts for CSS, HTML, and Js in eclipse

Source: Internet
Author: User

When we use eclipse to develop JSP pages, the smart prompts are not very effective. After two hours, we found that eclipse can completely intelligently prompt HTML, JS, and CSS code like Visual Studio 2008, to use the plug-in provided by ECLIPSE, you do not need to install the plug-in. The steps are as follows:

 

1. Open eclipse → windows → preferences → Java → editor → content assist

Modify auto activation triggers for Java to: zjava click Apply

 

2. Continue to open JavaScript → editor → content assist

Modify auto activation triggers for JavaScript to: zjs click Apply

 

3. Continue to open web → HTML files → editor → content assist

Modify the value of prompt when these characters are inserted to zhtml and click Apply.

 

4. Open File → export → genral → preferences → export a file to any location, open the file in notepad, CTRL + F search for zjava, and change its value to. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw

Search for zjs and change its value to. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.

Search for zhtml and change its value to <=. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.

Save the file.

5. open eclipse → file → import → genral → preferences. After importing the file you just edited, all the settings are complete. Now, let's test whether it feels better than before. Haha ,,, if you have any questions, please reply to me directly.

 

Below are the images after successful debugging:

 

 

 

 

 

 

When we use eclipse to develop JSP pages, the smart prompts are not very effective. After two hours, we found that eclipse can completely intelligently prompt HTML, JS, and CSS code like Visual Studio 2008, to use the plug-in provided by ECLIPSE, you do not need to install the plug-in. The steps are as follows:

 

1. Open eclipse → windows → preferences → Java → editor → content assist

Modify auto activation triggers for Java to: zjava click Apply

 

2. Continue to open JavaScript → editor → content assist

Modify auto activation triggers for JavaScript to: zjs click Apply

 

3. Continue to open web → HTML files → editor → content assist

Modify the value of prompt when these characters are inserted to zhtml and click Apply.

 

4. Open File → export → genral → preferences → export a file to any location, open the file in notepad, CTRL + F search for zjava, and change its value to. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw

Search for zjs and change its value to. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.

Search for zhtml and change its value to <=. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.

Save the file.

5. open eclipse → file → import → genral → preferences. After importing the file you just edited, all the settings are complete. Now, let's test whether it feels better than before. Haha ,,, if you have any questions, please reply to me directly.

 

Below are the images after successful debugging:

 

 

 

 

 

 

Related Article

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.