New “Save Actions” feature in Eclipse Europa
February 20th, 2008
Since I've installed Eclipse Europa IDE (version 3.3) on
my computer I found several new features I really appreciate. One of them is
the „Save Actions“ feature.
I always wanted something like this. I'm fond of clean and neatly formatted code, that's why I use shortcuts like CTRL+SHIFT+O (organize imports) pretty often.
You can find settings for this feature in the menu Window → Preferences → Java → Editor → Save Actions.
I set couple of various actions to perform automatically after saving the Java source files, for instance:
- organize imports – source code with unused imports
doesn't freak me out anymore

- format source code – we have our own company Java source code formatter settings in order to have uniformly looking source code even if it's written by different developers (I don't have to use the CTRL+SHIFT+F shortcut anymore)
- add missing @Override annotations
- remove unnecessary casts
And there are many other options, for example:
- remove trailing whitespaces
- sort class members
- remove unused private members
- etc.
Check it out, you'll definitely love it!
