Code formatting in eclipse

Source: Internet
Author: User

Some time ago, java files were automatically formatted when they were saved in eclipse, and custom formatting styles were set in Java-> code style-> formatter, so that they will be automatically formatted after each save.CodeAfter a while, I felt pretty good, high-tech, and automated.
After the group developed and used SVN, it was difficult to find that the format of the file is inconsistent. Therefore, there will always be a lot of unmatched items each time you compare the file, and you have been searching for a long time to cancel the automatic formatting setting, I couldn't find the setting, but I forgot the location after I accidentally set it. Today I rummaged through the stuff in preferences, and finally found and modified it.
Java-> Editor-> SAVE actions-> Format source code
Uncheck this option to cancel the automatic Formatting Function when saving and finally restore to normal. Record it here for fear of forgetting it someday.

From: http://www.blogjava.net/zhouf/articles/266910.html

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.