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