When you developed Android with Eclipse, you found that the code completion function was too poor to be completely like VS, and a code hint was entered in a single letter.
Here's how to implement similar vs code completion in Eclipse:
① Open the Eclipse->windows->preference and open the Preference interface.
② java->edit->content Assist is found on the right.
③ the option that appears to the right, there is an auto activation triggers for Java: The default content is "." (indicates that only input "." Code hints only).
④ on the top "." Replace with random characters, such as "asdf" (), and click OK to save.
Note: Some versions of Eclipse allow only 4 custom characters to be entered by default,
The eclipse version without this limitation can ignore the following steps and directly enter ". Abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" (can be set according to your needs)
⑤ Open Eclipse's File->export, expand general->perferences in the window and click Next.
⑥ Select Export All and select the save path for the. epf file, Finish.
⑦ Open the saved *.epf file above, search for "asdf" just set, replace ". Abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", save.
⑧ Open Eclipse's File->import, expand general->perferences in the window and click Next.
⑨ Select the *.epf,finish you have just modified.
You are done, you can re-enter windows->preference->java->edit->content assist to view the contents of auto activation triggers for Java:
Has changed to something that has just been modified, so enter how the letters and "." are entered in the code. There will be code hints.
PS: in [auto activation triggers for Java:] There is a [auto activation delay], the default is to enter a character 200 milliseconds after the code hint.
I set it to 20, coded happiness whining. Of course, the smaller the number, the higher the performance requirements for the system.
Eclipse Code Auto-Complete