Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change autocomplete braces in Xcode 4 [duplicate]

Tags:

xcode

xcode4

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

like image 276
Aaron Avatar asked Mar 16 '11 11:03

Aaron


2 Answers

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.

like image 166
Zev Eisenberg Avatar answered Oct 18 '22 15:10

Zev Eisenberg


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

Xcode 4 with opening brace on new line

like image 24
Scott Forbes Avatar answered Oct 18 '22 17:10

Scott Forbes