Xcode 4:在同一行上打开大括号 [英] Xcode 4 : Opening brace on the same line
本文介绍了Xcode 4:在同一行上打开大括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装了 Xcode 4,自动生成函数的左大括号在一个新行上.
I just installed Xcode 4 and the opening brace of the auto generated functions is on a new line.
例如:
- (void)dealloc
{
[_window release];
[super dealloc];
}
我希望像在 Xcode 3 中那样将左大括号放在同一行上:
I'd like to have the opening brace on the same line like it was in Xcode 3 :
- (void)dealloc {
[_window release];
[super dealloc];
}
有人可以帮我吗?
谢谢.
推荐答案
MarkC 的回答有正确的想法,但是 <Jedi>这些不是您要寻找的模板</Jedi>.
MarkC's answer has the right idea, but <Jedi> these aren't the templates you're looking for </Jedi>.
您需要编辑的模板在其中一个
The templates you need to edit are in either
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates
或
/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Templates
取决于您的目标平台.
这篇关于Xcode 4:在同一行上打开大括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文