AStyle Flags

From Wiki
Jump to navigationJump to search

AStyle is a decent pretty printer for C, C++, c# and Java (*blech*). It is located at http://astyle.sourceforge.net

Long form invocation

astyle --style=allman --indent=2 --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments \
       --break-blocks --indent-classes --pad-oper --pad-header --unpad-paren --delete-empty-lines --align-pointer=name \
       --align-reference=name <filename.ext>

Short form invocation (same arguments, same order)

astyle -A1 -s2 -C -S -w -Y -f -d -p -H -U -xd -k3 -W3 <filename.ext>