2009-12-18

程式排版Astyle

程式排版(Coding Style)常見的有indent, Astyle
以前是用 indent, 現在我裝了 Astyle..

用法記一下
格式 : astyle [options] 程式檔名


例:
astyle --style=java -s3 program_name

縮排用三個空白(-s3)
style 用 java (括左號在右方, 不再下一行, OO 的 Programe),

個人化設定檔 (.astyle) 還沒設定, 以後有空再設定..

沒有留言: