How to change autocomplete braces in Xcode 4 [duplicate]
Possible Duplicate:
Xcode 4 with opening brace on new line
I just want to change the braces style to
if (condition)
{
}
from the default style
if(condition) {
}
I cannot find the com.apple.Xcode plist after I installed the Xcode 4. So I'm not able to modify the xccodesenseformattingoptions BlockSeparator to \n.
Please help
Thankz in advance
You can replace the SystemCodeSnippets.codesnippets file, as detailed here: http://zurb.com/forrst/posts/Put_that_where_it_might_belong_Xcode-PNL
I don't know if the same file will work in Xcode 4.3, but it's worth a try. Because everything is bundled up together now, the new location of the file you need to replace is /Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets
.
For XCode 4 it's a little more complicated. See detailed answer here:
Xcode 4 with opening brace on new line
In xcode 4.3.1 you must manually edit the snippets located at:
/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets
There does not seem to be an easier way.
精彩评论