Many people do not know how to enable eclipseCodeThe auto-Prompt function of the assistant is displayed only after "." is entered by default in eclipse. In fact, you can enter any character to give a prompt.
The settings are as follows:
Open eclipse-> window-> perferences. The setting page of perferences is displayed.
Open the editor tab and find auto activation triggers for Java.
Only one "." exists. Indicates that the code prompt is displayed only after "." is entered. Here, we want to modify the code. By default, eclipse allows only four custom characters.
However, you can export the current settings, save them as a file, modify the settings in the file, and then import the settings to break through the eclipse restrictions.
Enter a few casual characters in ".", such as "ASDF" and click "OK" at the bottom to save the settings.
Then open the file-> export of Eclipse.
Expand general-> perferences in the window and click Next.
Click "Browse" to select any path, save the configuration file, and click "finish ".
Use NotePad to open the saved configuration file (extension file name: *. EPF), press "Ctrl + F", enter the set "ASDF", and find the string. Change "ASDF" to "abcdefghijklmnopqrstuvwxyz.", save it, and exit notepad.
Open File-> Import of Eclipse, expand general-> perferences in the window that opens, click Next, select the modified configuration file, and finish.
Now, open window-> perferences, expand Java-> Editor-> content assist in sequence, and we will find that it has exceeded 4 characters, that is, we enter any letter and ". "There will be code prompts.
After the modification, the code prompt is displayed after you enter a character 200 milliseconds by default. If the input is too slow, you need to increase the prompt delay. If you think it is too slow, it can be changed to a smaller number, but the smaller the number, the higher the requirement for system performance. I set it to 50 milliseconds.
Now, is eclipse more convenient to use?
I hope it will be convenient for you!