I typed both the codes in the terminal to bring the opening brace to new line.
defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator " "
defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict-add BlockSeparator "\n"
Both these are not working for xcode4. What to do to bring the opening brace to new line?