Xcode 版本:4.2和4.2之前的版本
选中需要格式化代码 -> Edit -> Format ->Re-Indent
Xcode 版本:4.2之后的版本
选中需要格式化代码 -> Editor -> Structure ->Re-Indent 或者
选中需要格式化代码 -> 右击 ->选中 Structure ->Re-Indent
【iOS开发问题】Xcode代码格式化与自动排版
最新推荐文章于 2021-02-18 17:22:32 发布