My Top 10 Tips on how to be more productive with the Eclipse IDE « EclipseSource Blog
9. Format edited lines on save
The code formatter in Eclipse is a very useful thing. It ensures that the code looks consistent in your projects — no matter who wrote it — and can be easily read and understood by anyone else. But, formatting the whole file can seriously mess up a diff between two versions of the file. So ‘format only edited lines on save’ might be the right choice if you want the have your code formatted and still be able to see what was changed in your code later on.
You’ll find this in: Preferences > Java > Editor > Save Actions
or in your project specific settings.
You might also want to take a look at the Eclipse Checkstyle Plug-In. This will help you to enforce your coding guidelines.
Read full article from My Top 10 Tips on how to be more productive with the Eclipse IDE « EclipseSource Blog
No comments:
Post a Comment