• 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
Re: Programming Style: Method Definition with or without a semicolon.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programming Style: Method Definition with or without a semicolon.


  • Subject: Re: Programming Style: Method Definition with or without a semicolon.
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 19 Oct 2009 16:23:23 +0200

On 18.10.2009, at 04:35, Ken Thomases wrote:
On Oct 17, 2009, at 2:24 AM, Uli Kusterer wrote:
What do project templates have to do with code completion? The comments don't mention how to customize code completion stubs either. Did I overlook something?

For controlling code completion, search for "XCCodeSenseFormattingOptions" on this page: http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html


Ken,

wow! Thank you! This is great! Here's a direct link to the section in question ("View Source" and decoding the anchor tag to the rescue):

http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html#//apple_ref/doc/uid/TP40005535-CH3-SW40

And it looks like the following command line:

defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict-add PreExpressionsSpacing "" InExpressionsSpacing " " InFunctionArgsSpacing " " PreMethodTypeSpacing "" PostColonSpacing " " BlockSeparator "\n"

makes the inserted code templates just the way I like them. Most non- Uli people will probably want to change the PreExpressionsSpacing and InExpressionsSpacing ;-)

Cheers,
-- Uli Kusterer
"The witnesses of TeachText are everywhere..."



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Programming Style: Method Definition with or without a semicolon. (From: "Frederick C. Lee" <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Graham Cox <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Roland King <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Graham Cox <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Uli Kusterer <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Graham Cox <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Uli Kusterer <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Recreating iPhone alarm Picker
  • Next by Date: Neophyte Question: Connecting to nib objects
  • Previous by thread: Re: Programming Style: Method Definition with or without a semicolon.
  • Next by thread: Re: Programming Style: Method Definition with or without a semicolon.
  • Index(es):
    • Date
    • Thread