Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jindent

 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to format your code into a standard proposed by SUN, check this out. It's called Jindent och you can download an copy from http://www.jindent.de.
This tool format your files and adds this in the end of the file:
/*--- Formatted in Sun Java Convention Style on jeu., janv. 31, '02 ---*/

/*------ Formatted by Jindent 3.24 Gold 1.02 Trial --- http://www.jindent.de ------*/
 
Steve Granton
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I use PrettyPrinter to format my code and put in the javadoc tags. There is a settings file in which you can specify different formats. I've found it very useful. You can also use if as part of the Ant build tool.
Have a look at:
http://jrefactory.sourceforge.net/cspretty.html
Cheers,
Steve
 
Steve Granton
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also,
You can use Ant to automatically produce the javadoc documentation for your project.
See http://jakarta.apache.org/ant/index.html for Ant.
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I didn't know this one. Thank you!
Enrico
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried JIndent (trial version). It does not follow Sun coding conventions in everything. After while or if parentheses start immediately although there should be space. Also in many places where it should have put 8 spaces indent (after line break) it put only 4. You have to be careful if you use JIndent.
Jukka
 
Juan Ec
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use jalopy, and i've integrated it with my idea. works really great and it is completly customizable
http://jalopy.sourceforge.net/
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But JIndent is not free. So I prefer the integrated indentation engine of Forte For Java!!
 
John Sinues
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Jacobe and configured it to run under Eclipse.
- John
[ October 30, 2002: Message edited by: John Sinues ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic