How to configure Content Assistant (Java Code Hint) using STS or Eclipse
before configuration
Use Alt + . This is also the default configuration of eclipse
after configuration
The opening method is as follows:
windows–>Preferences–>Java–>Editor–>Content Assist
Type in the input box after Auto activation triggers for Java (by default there is only one dot):
Copy and paste the following into the red box with only one dot at the end:
.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLNMOPQRSTUVWXYZ
This means that we can automatically prompt the code when we enter 26 English letters (upper and lower case) and dots.
The above Auto activation delay (ms) is to start the prompt after a delay of a few milliseconds after typing. The default is 200 milliseconds. You can fine-tune it according to your own situation. Generally, you can keep the default.