Automatic Completion & Code collation for Eclipse

Source: Internet
Author: User

This problem has been bothering me for a long time and I've always felt that eclipse was not as convenient as the VA, and then finally found a solution to discover that Eclipse's AutoComplete feature is much stronger than vs.

Workaround 1

In fact, the Eclipse default AutoComplete shortcut is CTRL + Space but this shortcut and the system input shortcut key conflict, so we need to change the next Eclipse Auto completion shortcut keys.

Even press two times ctrl+shift+l into the shortcut settings interface, enter the content assist in type filter text and then the corresponding binding shortcut, select it, change the value of the following binding can change its shortcut key ~ It is more convenient to use the key on the left of the number 1.

Workaround 2

The above method only allows eclipse to be automatically completed in the context of the key, without the convenience of VA, this is the ultimate solution

Enter windows->perferences->java->editor->content assist to fill in the auto activition triggers for java. ABCDEFGHIJKLMNOPQRSTUVWXYZ (,

Fill in the @# below.

Oh now try whether there is automatic completion of it.

But sometimes the automatic completion is too smart, often help you name variables ~

So I'm usually more accustomed to the first type when needed, click the shortcut key automatically completed out of the ~

In addition, Eclipse code collation is simply a matter of selecting code to press Ctrl+shift+f

In addition in the perferences can also customize the style of the code ~ ~ This is quite strong ah ... Oh everyone down their own groping it ~ ~ ~

Above

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.