Posts tagged ‘eclipse java save format tips’

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) :

Eclipse Save Action

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.