How to change autocomplete shapes in Xcode 4

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

+8
xcode xcode4
source share
3 answers

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 .

+3
source share

For Xcode 4, this is a little trickier. See the detailed answer here:

Xcode 4 with opening bracket on a new line

+1
source share

In xcode 4.3.1, you must manually edit the fragments located at:

 /Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets 

There seems to be no easier way.

0
source share

All Articles