8

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

Community
  • 1
  • 1
Aaron
  • 1,342
  • 2
  • 16
  • 34

3 Answers3

3

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.

Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
1

For XCode 4 it's a little more complicated. See detailed answer here:

Xcode 4 with opening brace on new line

Community
  • 1
  • 1
Scott Forbes
  • 7,397
  • 1
  • 26
  • 39
0

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.

Andrew
  • 463
  • 4
  • 7