Handy Eclipse Save Action
I was looking for Eric Lefevre blog post for a pointer on an Eclipse plugin which performs an “optimize imports” (ctrl-shift-o) and “format source code”(ctrl-shift-f) each time you save a file (ctrl-s).
But I just discovered today that Eclipse is doing it natively, at least in the version I’m using (3.3m3 Build id: I20070222-0951). And it’s doing a little bit more things (including removing those pesky trailing whitespace) :
No need for a plugin for now on, and if you’re like, quite paranoïd when it comes to install plugin in your Eclipse install, this is a good news.



Eric:
Wow! I didn’t know that! I’ve now enabled it on my version of Eclipse (3.3M6). It was definitely not there in Eclipse 3.2.
18 April 2007, 4:01 pmericlefevre » Format On Save Plugin For Eclipse:
[...] (18/04/07): this is now native in Eclipse 3.3. See Jean Laurent’s post for [...]
18 April 2007, 4:03 pm