如何在Xcode中格式化代码? [英] How to format code in Xcode?
本文介绍了如何在Xcode中格式化代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
选择要格式化的文本,然后按 Ctrl + I 。
使用 Cmd + A 首先如果您想格式化所选文件中的所有文本。
注意:此过程只重新缩进行,它并不 做任何高级格式化。
I wonder how can I format my code to align it neatly? Does it have a feature similar to Eclipse's ctrlshiftf?
解决方案
Select first the text you want to format and then press Ctrl+I.
Use Cmd+A first if you wish to format all text in the selected file.
Note: this procedure only re-indents the lines, it does not do any advanced formatting.
这篇关于如何在Xcode中格式化代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文