After much searching, I found the download for the eclipse version of jalopy. Is this compatible with Eclipse 3.4? It's dated 2006.
I've copied the extracted folder to my plugins directory and run eclipse -clean
, but I can't find anything matching 'jalopy' in preferences.
If it's not compatible, are there any (free) alternatives?
The answer is 'yes'. Preferences are in
Window > Jalopy Preferences
, and it's run from the right click context menu. Seems a little buggy, though.i'm told that open source version of jalopy is not for commercial use.
eclipse itself has good source code formatting capabilities. Go to java | preferences/settings. type format and you should see the various options.
Just an update:
Note: the latest eclipse3.5 Galileo code formatter now:
It also can be run from the command-line if needed.
For a specific formatting option which would not be correctly managed by eclipse, you can define a
codeFormatter
extension point. More practical details in this SO question.