astyle使用方法记录

--pad-paren-out, -d Insert space padding around parenthesis on the outside only. Any end of line comments will remain in the original column, if possible. This can be used with --unpad-paren below to remove unwanted spaces.

       --delete-empty-lines, -x
              Delete empty lines within a function or method. Empty lines outside of functions or methods are NOT deleted. If used with --break-blocks or --break-blocks=all it will delete  all  lines
              except the lines added by the --break-blocks options.

       --pad-header, -H
              Insert  space  padding  after  paren  headers  only  (e.g.  'if',  'for',  'while'...).  Any  end of line comments will remain in the original column, if possible. This can be used with
              --unpad-paren to remove unwanted spaces.

       --indent-classes, -C
              Indent 'class' blocks, so that the inner 'public:', 'protected:' and 'private:' headers are indented in relation to the class block.  This option has no effect on Java and C# files.

       --suffix=none, -n
              Do not retain a backup of the original file. The original file is purged after it is formatted.

       --delete-empty-lines, -x
              Delete empty lines within a function or method. Empty lines outside of functions or methods are NOT deleted. If used with --break-blocks or --break-blocks=all it will delete  all  lines
              except the lines added by the --break-blocks options.

       --convert-tabs, -c
              Convert tabs to spaces in the non-indentation part of the line. The number of spaces inserted will maintain the spacing of the tab. The current setting for spaces per tab  is  used.  It
              may not produce the expected results if --convert-tabs is used when changing spaces per tab. Tabs are not replaced in quotes.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值