At eclipse go to Window > Preferences, press on import and select eclipse_formatter.xml
Select “Perform the selected actions on save” so that nothing is checked in without being formatted:
Use Configure to add the “Additional actions” listed above.