开发者

astyle did not indent lines ended with . or ->

I tried to use astyle to styl开发者_如何学Goize my code, but when it came to

some_structure[some_index].
    method_call(some_parameters);

it would turn it into

some_structure[some_index].
method_call(some_parameters);

I am using --style=ansi. I did not see any corresponding options in help file.

Can you help?


astyle can't recognize and indent your code because of the newline, even Uncrustify (http://uncrustify.sourceforge.net/) which has tons of options, can't.

you can use UniversalIndentGUI (http://universalindent.sourceforge.net/) to see the changes live and save a config file for you favorite code beautifier.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜