In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can s
I have a snapshot of the setting. Please follow the path:
In the Preferences window, choose Java --> Editor --> Save Actions.
Check the Perform the selected actions on save, and check the Format source code box.