Possible duplicate:Xcode 4 with opening bracket on a new line
I just want to change the braces style to
if (condition) { }
from default style
if(condition) { }
I cannot find com.apple.Xcode plist after I installed Xcode 4. Therefore, I cannot change xsodesenseformattingoptions BlockSeparator to \ n.
Please, help
thanks in advance
You can replace the SystemCodeSnippets.codesnippets file as described 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. Since everything is now put together, the new location for the file you need to replace is /Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets .
/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets
For Xcode 4, this is a little trickier. See the detailed answer here:
Xcode 4 with opening bracket on a new line
In xcode 4.3.1, you must manually edit the fragments located at:
There seems to be no easier way.