Automatic formatting of code when eclipse is saved

Source: Internet
Author: User

Using eclipse for a long time, but Eclipse has a lot of quick and easy to use features are not used, now in Guangzhou to do projects, a lot of things just heard before or is simple to use, just use the fur, from the people around to learn something, from the Eclipse software use to start sharing.

Eclipse saves the automatic formatting code, only need to set up in Eclipse, Eclipse comes with this feature, but the default is not checked, to achieve this function, only need to select the can. Specific steps: Windows-->preferences-->java---editor-->save actions, tick the "Perform the selected actions on" option on the right Save ", select" format source code "," Format All Lines "



After setting the automatic formatting code on save, there will be no conflict when merging, and it will play a role in code specification.

Automatic formatting of code when eclipse is saved

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.