Automatic prompt setting for writing code in eclipse

Source: Internet
Author: User

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!

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.