如何在Xcode 4中更改自动完成括号

Aar*_*ron 8 xcode xcode4

可能重复:
Xcode 4在新行上有左括号

我只想将大括号样式更改为

if (condition)
{

}
Run Code Online (Sandbox Code Playgroud)

从默认样式

if(condition) {
}
Run Code Online (Sandbox Code Playgroud)

安装Xcode 4后,我找不到com.apple.Xcode plist.所以我无法将xccodesenseformattingoptions BlockSeparator修改为\n.

请帮忙

提前谢谢

Zev*_*erg 3

您可以替换 SystemCodeSnippets.codesnippets 文件,详细信息如下:http://zurb.com/forrst/posts/Put_that_where_it_might_belong_Xcode-PNL

我不知道同一个文件是否可以在 Xcode 4.3 中工作,但值得一试。因为现在所有内容都捆绑在一起,所以您需要替换的文件的新位置是/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets.