I have seen this, to execute this on the command line. But does nor work for me.
defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator "\n"
or
defaults write com.apple.dt.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator "\n"
Would really appreciate your help.