• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Insert literal brace?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Insert literal brace?


  • Subject: Insert literal brace?
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 3 Nov 2009 12:39:30 -0600

I have Xcode set up to auto-insert a closing brace (}) whenever I type an opening brace ({). This is what I mean to do _almost_ every time.

However, sometimes I want to write something like:

- (NSUInteger) folderCount { return self.folders.count; }

since I don't like expending three extra lines for so little. But as soon as I type the opening brace, the extra line and the closing brace are inserted, and I have to crawl around a bit to get what I want.

In versions of Xcode before 3.2.x, I could prevent autoinsertion by pressing ctrl-Q, the Emacs-style literal-quote command, before the brace. Then I'd just get the brace and nothing else. That seems to have gone away. Can anyone suggest a new workaround?

	— F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Insert literal brace?
      • From: Joar Wingfors <email@hidden>
    • Re: Insert literal brace?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: something wrong with architecture and compiling
  • Next by Date: Re: something wrong with architecture and compiling
  • Previous by thread: Editing while code sense placeholders are showing
  • Next by thread: Re: Insert literal brace?
  • Index(es):
    • Date
    • Thread