Make eclipse fully support HTML, JS, and CSS smart prompts, eclipsecss

Source: Internet
Author: User

Make eclipse fully support HTML, JS, and CSS smart prompts, eclipsecss

When you use eclipse to develop jsp pages, smart prompts are not very effective. You can modify the eclipse configuration to intelligently prompt HTML, JS, and CSS code. The specific steps are as follows:

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

Set Auto Activation triggers for java to ". abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW" (Convention "" to remove) and click "apply;

2. Continue to open JavaScript → Editor → Content Assist

Set Auto Activation triggers for javaScript to ". abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW" and click "apply;

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

Modify Prompt when these characters are inserted: Value: "<=. abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW" and click apply;

[Principle :]

This modification allows the IDE to prompt for search when such a character is encountered. If you feel that the prompt is not fast enough, you can set the "delay" time to speed up.


How does Eclipse 341 javascript jquery css prompt automatically?

Completely smart prompt HTML/JS/CSS code
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


. 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:




How can I enable Eclipse to automatically prompt html and js Code?

Prompt that the java code can be ALT +/(the premise is that you need to name the first letter of the class or method you need ).. the following are some of the shortcut keys I have collected. For more information, see
Ctrl + M maximize current window
Ctrl + F7 window port switch
Ctrl + F8 mode switch
Ctrl + F6 edit window switch (too big and unsightly fingers)
Ctrl + E edit window switch (this is more elegant :))
Alt + ↓ previous edited page
Alt + → next edited page
Ctrl + Alt + ↓ copy (ADD) The current row to the next row
Ctrl + Alt + ↓ copy (ADD) The current row to the previous row
Alt + ↓ interaction position between the current row and the following row (no need to cut)
Alt + ↑ the interaction position between the current row and the previous row
Ctrl + D Delete the current row
Alt + Enter display the properties of the selected file
Shift + Enter insert null rows in the current row (next row)
Shift + Ctrl + Enter insert blank rows in the current row (previous row)
Ctrl + Q locate the Last edited location
Ctrl + L locate on a specific line
Ctrl +/comment out the current row (multiple rows are allowed), and then press it to cancel the comment
Ctrl + Shift + R find the file
Ctrl + Shift + T find class
Ctrl + K select the Word to quickly locate to the next
Ctrl + Shift + K select the Word to quickly locate the previous one
Ctrl + Shift + U select and list the query results
Ctrl +/(keypad) collapse all code in the current class
Ctrl + × (keypad) show all the code in the current class
Ctrl + Shift + P locate the matched character (for example {},())
CTRL + SHIFT + X switch characters in upper case)
CTRL + SHIFT + Y switch characters in lower case)
Ctrl + 1 when an error occurs or a warning occurs, the help is displayed.
Ctrl + Shift + F format Layout
Alt + Shift + R Rename (convenient when changing the volume and class name)
Alt + Shift + C modify function completion
Alt + Shift + M reconstruction method (select the method to be reconstructed and generate a new method)
Alt + Shift + Z Reconstruction and Recovery
Ctrl + W close current window
Ctrl + Shift + F4 close all open windows
Ctrl + Shift + O: import-related classes. If the imported classes are not used, delete them.

If you want to prompt in jsp, <the prompt is displayed ..
<> You can still use the alt +/key to prompt the parameters ..

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.