C/C++ Formatting Settings

Print

Jindent supports more than 300 formatting settings:

  • Intelligent line wrapping
    Jindent knows several algorithms to perform line wrapping and tries always to find the best fitting solution. The line wrapping algorithms keep attention of operator precedence, prefer low level wrapping, and much more.
  • Indentation
    Several options to control indentation of blocks, tokens and scopes by white spaces and tabulators.
  • Brace style transformation
    Separated and fine grained control of brace style settings for classes, interfaces, annotation types, methods, constructors, statements, enums and try-catch-blocks. Additionally the most common braces styles are already available as presets: K&R/Kernal, BSD/Allman, Whitesmiths and Gnu.
  • Insertion of parantheses and braces
    To improve readability of source code Jindent is able to insert parentheses and braces into certain statements and conditions without changing its functionality.
  • Blank line and white space formatting
    Support for very fine grained white space and blank line control before and after tokens.
  • Semantic source code separation
    Automatical insertion of blank lines and special comments to separate source code elements by its semantic.
  • Insertion and substitution of header and footer
    Jindent is able to recognize header and footer comments. Missing headers/footers will be inserted or obsolete headers/footers will be regonized and substituted by new ones.
  • Conversion between character and end-of-line encodings
    Support of a lot of different encodings and text styles to read and write source codes. Therefore it is possible to convert Java files from one encoding standard to another.