• 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
More indentation issues in XCode 3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More indentation issues in XCode 3


  • Subject: More indentation issues in XCode 3
  • From: Andrew White <email@hidden>
  • Date: Thu, 19 Mar 2009 10:03:39 +1100

Hey all,

Trying to set up XCode 3 indentation, the following was quite helpful:

http://lists.apple.com/archives/Xcode-users/2008/May/msg00110.html


It answered a lot of my questions, but I've still got a couple of issues (for C) that are annoying me:

(1) Multi-line function header arguments:

int
myFunctionName (
	int x,
	int y
)

How do I get the indent on the arguments above to be \t (as above) rather
than ' '?


(2) Multi-line function body arguments:

	result =
		myVeryLongFunction (
			x, y, z,
			a, b, c
		);

XCode wants to format this as:

	result =
		myVeryLongFunction (
		                    x, y, z,
		                    a, b, c
		                    );

Which is not what I want.  And because tab also means "indent" (not just
literal tab), it's actually quite a bit of work to set it up how I do want.


Three questions:

(1) Is it possible to convince XCode to use my desired formatting?
(2) If not, is it possible to turn code sense off for just these operations?
(3) Is there a keystroke to enter a literal leading tab?

In XCode 2, I couldn't figure it out, so I just turned it off completely.
But it's actually useful, so I'd rather leave it enabled in my new XCode
install if I can.


Thanks

--
Andrew White


_______________________________________________ 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: More indentation issues in XCode 3
      • From: "William H. Schultz" <email@hidden>
  • Prev by Date: Re: compile warning re not implementing protocol
  • Next by Date: Adding Info.plist to "single file" / "flat" executable after link phase?
  • Previous by thread: Re: Referencing (antlr) generated header files from another target's $DERIVED_FILES_DIR [SOLVED?]
  • Next by thread: Re: More indentation issues in XCode 3
  • Index(es):
    • Date
    • Thread