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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to