Eclipse code prompt

Source: Internet
Author: User

By modifying the perferences of Eclipse, You can greatly reduce the frequency of ALT +/usage.

Open eclipse-> window-> perferences. The setting page of perferences is displayed.

Find the content assist under the editor in Java. In the option displayed on the right, there is an auto activation triggers for Java:

Only one "." exists. The code prompt is displayed only after "." is entered. This is the place where we want to modify it. By default, only four custom characters can be entered in eclipse.

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, and expand general-> perferences --> export in the window.

All and then 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), and press "Ctrl +

F ", enter the set" ABCD "and find the string. Modify "ASDF" to "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.", save it, and exit notepad.

Open File-> Import of eclipse and expand general-> In the window that opens.

Perferences, click Next, select the modified configuration file, and finish. Now, open window> perferences and expand Java> editor> content assist in sequence,

It can be found that it has been more than 4 characters, that is, we enter any letter and "." There will be code prompts.

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.