Is it possible to change the way Xcode indent blocks are locked?

By default, Xcode automatically lays out multiple lines of code in C-style comment blocks in a single space:

/* this is a comment block
 line 1
 line 2
*/

Can this behavior be changed? I would rather not be indented in comment blocks.

+5
source share
1 answer

This is not a complete answer, but Xcode has code formatting options under the key XCCodeSenseFormattingOptions.

You can set parameters via the command line or edit plist:

defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict PreExpressionsSpacing  "" PreCommaSpacing " "

Unfortunately, I cannot find any settings for a single indent in the comment blocks, and that makes me crazy!

+4
source

All Articles