• 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: Code Indentation Customization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Indentation Customization


  • Subject: Re: Code Indentation Customization
  • From: Eric Gorr <email@hidden>
  • Date: Thu, 14 Aug 2008 11:24:16 -0400

On Aug 14, 2008, at 10:47 AM, Steve Checkoway wrote:


On Aug 14, 2008, at 6:53 AM, Eric Gorr wrote:

I was just wondering if there were any hidden features that would allow me to customize how xcode does it's indentation...?


This _is_ customizable! <http://lists.apple.com/archives/Xcode-users/2008/May/msg00110.html >

(Note to self, don't try to use lists.apple.com to search the archives, use google.)

hummmm....

So, I went to the terminal and entered:

  defaults read com.apple.Xcode XCCodeSenseFormattingOption

and got the output:

The domain/default pair of (com.apple.Xcode, XCCodeSenseFormattingOptions) does not exist

I then did:

defaults write com.apple.Xcode XCCodeSenseFormattingOptions '{ InExpressionsSpacing = " "; }'

and then:

  defaults read com.apple.Xcode XCCodeSenseFormattingOptions

which produced the output:

  {
      InExpressionsSpacing = " ";
  }


I then quit & restarted Xcode and it still will not put a space after the '(' character.
I also tried 'InExpressionSpacing', thinking it might be a typo, but that didn't work either.


Additionally, according to the post, there is the default of:

PreExpressionsSpacing = " "
The spacing between an if, for, while keyword and the opening parenthesis.


but, this doesn't appear to work either. I entered:

  if(a==b)

selected the line and then selected Edit->Format->Re-Indent and it did not add a space before the '(' character.


Perhaps I am missing something...


_______________________________________________ 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
References: 
 >Code Indentation Customization (From: Eric Gorr <email@hidden>)
 >Re: Code Indentation Customization (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Code Indentation Customization
  • Next by Date: Re: downloading documentation failing, Xcode quits.
  • Previous by thread: Re: Code Indentation Customization
  • Next by thread: Re: Code Indentation Customization
  • Index(es):
    • Date
    • Thread