问题
for example, I have something like this:
aVarible = 123;
bIndex = 234;
cSomethingVerylong = 456;
And I would like to intent the code like this:
aVarible = 123;
bIndex = 234;
cSomethingVerylong = 456;
How can I do so? Thank you.
回答1:
You could use uncrustify:
http://uncrustify.sourceforge.net/
I don't use it, so I cannot vouch for its quality, but it does claim to do exactly what you suggest in your question. If that's all you want to do, it's probably overkill, but if you want to "tidy" your code in a number of ways, then that's what uncrustify is there for.
来源:https://stackoverflow.com/questions/5181560/is-there-any-short-cuts-for-xcode-to-tidy-up-the-code