Xcode 代码格式化/自动排版

来源:互联网 发布:防身折叠式铁扇子淘宝 编辑:程序博客网 时间:2024/05/17 04:18

Xcode  版本:4.2和4.2之前的版本

             选中需要格式化代码 -> Edit -> Format ->Re-Indent

Xcode 版本:4.2之后的版本

             选中需要格式化代码 -> Editor -> Structure ->Re-Indent       或者

             选中需要格式化代码 -> 右击 ->选中 Structure ->Re-Indent



转载:http://blog.csdn.net/mars2639/article/details/7587824

原创粉丝点击