Clean & Clear code is important!

Spaghetti Code Hurtz!

How often do you find yourself cruising to code that is not properly formatted? Or that imports unnecessary packages?

I must say that I find it quite often and, as annoying as it can be it is also quite easy to enforce under Eclipse.

To have Eclipse automatically clean your source code after every save, simple enable it in:

Windows and Linux: Window -> Preferences -> Java -> Editor -> Save Actions

OS X: Eclipse (or app name if using STS, JBoss Dev Studio, etc) -> Preferences -> Java -> Editor -> Save Actions

Eclipse Save Actions

Advertisements

About CrazyPenguin

Software Engineer
This entry was posted in Eclipse, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s