Java Source Reformatter v1.11
Download JSR Jar Download JSR Source

  • Change the way your Java program is formatted by specifying indenting style, brace style, and tabs/spaces selection.
  • Onscreen sample always reflects your choices.
  • Gets rid of useless whitespace at the end of each line.
  • A backup option lets you keep a copy of the code in its original format.
  • Passing in a filename performs the reformatting without bringing up the GUI.
  • Command line options to set default preferences works for both GUI-based and non-GUI-based reformatting.
    -n= Toggle "Braces On Next Line"
    -i= Toggle "Indent Braces"
    -b= Toggle "Backup Original"
    -s(x)= Toggle "Spaces" (Set number of spaces to x)
    Example: -ns6b
    Turns on "Braces On Next Line" & "Backup Original" options, switches from tabs to spaces, and sets the number of spaces to 6
  • Java Source Reformatter screen shot