Setting XCode brace options

Just started working with Xcode. I'm old-fashioned and prefer my code blocks to look like this:

if (x)
{
//do something
}

rather than like this (which is how Xcode defaults to doing things):

if (x) {
//do something
}

After a bit of quality time with the big G, I found that this bit of Voodoo (supplied to the Terminal) does the trick:

defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator "\n"

More of these codes are available from Apple's reference docs.

Comments

Popular posts from this blog

Apple No More?

Delicious Serial