Many people do not know how to enable the automatic prompt function of the Code assistant in eclipse. The prompt is displayed only after "." is entered by default in eclipse.
Open eclipse-> window-> perferences. The setting page of perferences is displayed.
(Click an image to view the larger image)
At the place where the red line is drawn, only one "." is displayed. 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.
Open File-> export of eclipse and open the following window:
(Click an image to view the larger image)
Expand general-> perferences in the window and click Next.
(Click an image to view the larger image)
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.
(Click an image to view the larger image)
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.
(Click an image to view the larger image)
Now, is eclipse more convenient to use?