Is there any short cuts for Xcode to tidy up the code?

依然范特西╮ 提交于 2019-12-12 02:42:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!