Alex Rivera | Logout

Remove default code snippets in XCode 4

Asked 2011-03-10T20:20:58.450
9

I want to delete some of the default code snippets in XCode 4 because I want the beginning curly brace to start on a new line. I tried the following but XCode 4 does not seem to adhere to the rule.

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

Any suggestions?

Thanks.

Edit
Report

1 Answer

0

The following has worked with my XCode 4 installation:

defaults write com.apple.Xcode XCCodeSenseFormattingOptions '{ "BlockSeparator" = "\n" ; }'
answered 2011-03-22T11:18:52.953

Your Answer