In addition to @Dmitry Durkin's answer.
You need to manually create a new formatter profile (and / or clear ) that matches the one-on-one settings.jar inside settings.jar . Reliable eclipse provides all one to one. Do not waste much time.
In eclipse, go to Window > Preferences . Go to Java > Code style > Formatter . Here, create a new formatter that matches the settings in settings.jar.
Use this new formatting profile to create a new cleansing profile in Java > Code style > Cleanup for advanced settings like Removing trailing spaces , etc.
Right-click your project and go to Source > Clean up or Source > Format . To clear / format all your projects in one go.
source share