Eclipse code prompt

Source: Internet
Author: User

In eclipse ". "An automatic prompt is displayed, which is used for the automatic prompt of class members. However, sometimes we want it to display an automatic prompt after we enter the first letter of the class, you can save a lot of input time (even if you press Alt +/, a prompt will appear, but you still need to press the button one more time, which is too troublesome ).

From WINDOW> preferences> JAVA> editor> content assist> auto-activation ". "add the first subtitle that we need to automatically prompt after the number, such as" ahiz ".

Then we return to the eclipse development environment and enter "A". The prompt is displayed.

However, we can find that the input box in auto-activation can only contain up to five letters. Maybe eclipse developers worry that too many input will affect performance, however, the performance of the computer is not needed in white, so we need to break this restriction.

In fact, the above is a foreshadowing, to create an atmosphere, it seems that we are doing the following things very good, in fact, it is not, everything is very simple. Hey hey :)

In ". "Enter a few characters, such as" abij ", and return to the development environment. Choose File> export> General> preferences> to save your preference, for example, C: \. EPF

Open a. EPF in any text editor, find the string "abij", find it, and replace it with "abcdefghijklmnopqrstuvwxyz". In short, what do you want !! Go back to eclipse, file-> Import-> General-> preferences-> import the. EPF file. At this time, you will find that you will receive an automatic prompt when entering any subtitles. Great !!!

Finally, it is better to change the pop-up time to less than 100 milliseconds for the automatic prompt to be displayed, otherwise you will be finished and the automatic prompt will pop up :), but it also depends on the machine performance.

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.