请教一个关于代码格式(排版)化的问题

来源:互联网 发布:excel表格数据无法编辑 编辑:程序博客网 时间:2024/06/07 16:10
Xcode 能实现 Visual Studio 中输入分号自动排版当前行代码的功能吗 ?
例如

Person *p=[Person alloc]initWithAge:12 andName:@"123"];

在输入分号";"后排版变成

Person *p = [Person alloc] initWithAge:12 andName:@"123"];


其实就多了几个空格(等号前后的 , 方法嵌套时的) , 但是让代码间距合理更易阅读 , Xcode有这相关的方法或者插件吗 ?
0 0
原创粉丝点击