5

How do a I turn off AppCode generating a closing brace } whenever I type the opening brace { character?

What I've Tried:

I looked through: Settings --> Code Style --> Objective-C and then selected "Wrapping and Braces" and in that list, nothing jumps out as disabling the automatic right brace.

With such a sophisticated set of customizations, I know it has to be there!

Update:

Here's a visual on the answer provided by @pjumble

enter image description here

Joachim
  • 15
  • 4
idStar
  • 10,674
  • 9
  • 54
  • 57

2 Answers2

5

Turn off "AppCode" -> "Preferences" -> "Editor" -> "Smart Keys" -> "Insert Pair Bracket" and "Insert Pair '}'"

pjumble
  • 16,880
  • 6
  • 43
  • 51
  • pjumble: I'm using AppCode 1.04, and your suggestion makes total sense - this should be it. However, even after a restart, it didn't take! At this point, I'm going to file a bug with JetBrains. – idStar Jan 27 '12 at 20:34
  • Works now - I missed the first "Insert Pair Bracket" in your answer! – idStar Jan 27 '12 at 20:48
0

Choose Xcode > Preferences, click Text Editing, and deselect Automatically insert closing ‘}’.

Andrey Zverev
  • 4,409
  • 1
  • 28
  • 34
  • Andrey: I'm actually using a 3rd party IDE from a company called JetBrains. It's an alternative to Xcode for some editing tasks, based on the IntelliJ IDEA platform of IDE popular in the heydays of Java development. Your tip works, but if using Apple's own Xcode. – idStar Jan 27 '12 at 20:32