Last Updated: September 09, 2019
·
1.516K
· moak

Save time writing Java with Eclipse using save actions

When I started learning Java it became quickly became apparent that it is a verbose language, tiresome to maintain. When I see well maintained Java code I am grateful to the coders but also wondering how they can be productive with so many guidelines.

I was lucky to discover that eclipse has a pretty cool gem hidden in the preferences called Save Actions

Picture

Now whenever I save with CTRL + S eclipse automatically organizes imports (usually CRTL +SHIFT + O), and corrects indentation (usually CTRL +SHIFT + F) and does a bunch of additional actions I am glad not to write by hand