开发者

astyle did not indent lines ended with . or ->

开发者 https://www.devze.com 2023-02-22 16:33 出处:网络
I tried to use astyle to styl开发者_如何学Goize my code, but when it came to some_structure[some_index].

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

精彩评论

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