Disable adding matching square brackets in JetBrains AppCode

How to disable adding the corresponding character of the open square bracket β€œ['when entering a closed square bracket”]?

I tried various combinations of Smart Key options, and none of them do what I want. I can turn off the automatic addition of the closing bracket ']' when I type the open bracket '[', but not vice versa.

Example:

I have the following line:

if ([myObject respondsToSelector:@selector(outline)]) 

and my cursor is between the characters ')' and ']'. When I type '], this is what I get:

 if ([myObject respondsToSelector:[@selector(outline) ]]) 

I expect the existing ']' to be overwritten by the one I'm typing, or at least that the new '[' will not be added.

I am using AppCode 1.6.2 and the IdeaVIM plugin.

Thanks!

+7
source share
1 answer

In the Xcode settings on the "Text Editing" tab, there is "Automatically balance brackets in the Objective-C method". Uncheck this box.

-one
source

All Articles