Is there a way to make Xcode handle brackets more intelligently?

Viewed 1153

In Xcode, if you are calling a method that takes a series of flags as an argument, when you type the right bracket character, it creates a new left bracket at the last flag, rather than at the start of the line. Is there any way to fix this?

    // Type this...
    someFunc withFlags:FlagA|FlagB|FlagC

    // Now type a right bracket ]
    someFunc withFlags:FlagA|FlagB|[FlagC ]

    // It should be this:
    [someFunc withFlags:FlagA|FlagB|FlagC]
3 Answers
Related