How to make Eclipse clean up & format your code for you | Bukkit Forums
Eclipse splits code clean up in two parts: clean up and formatting. You can run each one separately, but I suggest to use both together as it has the best results and it is what I'm trying to explain in this tutorial.How to enable clean up and set your preferences
1) Code clean up
Clean Up itself improves code by adding missing annotations, removing unused imports, declaring variables final if they can be final, etc., but doesn't actually change the layout of the code. This is done by the Formatter which is explained later on.
Eclipse already has some default Clean Up settings, but these barely do anything. You'll have to make your own settings to make Clean Up actually clean up your code.
Read full article from How to make Eclipse clean up & format your code for you | Bukkit Forums
No comments:
Post a Comment