Xcode 版本:4.2和4.2之前的版本
选中需要格式化代码 -> Edit -> Format ->Re-Indent
Xcode 版本:4.2之后的版本
选中需要格式化代码 -> Editor -> Structure ->Re-Indent 或者
选中需要格式化代码 -> 右击 ->选中 Structure ->Re-Indent
转载:http://blog.youkuaiyun.com/mars2639/article/details/7587824
本文介绍了如何在不同版本的Xcode中进行代码格式化操作。对于Xcode 4.2及更早版本,可以通过“Edit”菜单下的“Format”选项进行重新缩进。而在4.2之后的版本中,则通过“Editor”菜单下的“Structure”来完成相同的功能。
Xcode 版本:4.2和4.2之前的版本
选中需要格式化代码 -> Edit -> Format ->Re-Indent
Xcode 版本:4.2之后的版本
选中需要格式化代码 -> Editor -> Structure ->Re-Indent 或者
选中需要格式化代码 -> 右击 ->选中 Structure ->Re-Indent
转载:http://blog.youkuaiyun.com/mars2639/article/details/7587824
685

被折叠的 条评论
为什么被折叠?