【发布时间】:2014-06-29 05:22:49
【问题描述】:
是否有宏或首选项设置可以自动沿 Xcode 中的列和冒号对齐方法参数?
基本上是转这个的捷径:
[object methodWithParam:theParam another:theOtherValue something:theSomethingValue else:theElseValue];
自动进入这个:
[object methodWithParam:theParam
another:theOtherValue
something:theSomethingValue
else:theElseValue];
是否可以通过代码完成来实现此功能?换句话说,当我完成一个方法时,它会自动将格式包装成这种样式?那么预先存在的代码呢?我可以将插入符号放在方法中,按键盘快捷键并自动格式化参数吗?
【问题讨论】:
标签: objective-c code-formatting