• 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
function argument indentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

function argument indentation


  • Subject: function argument indentation
  • From: Steve Byan <email@hidden>
  • Date: Tue, 9 Mar 2010 16:58:39 -0500

I'm sure this is a well-traveled subject, but I was unable to find any mention of my specific issue in the list archive.

I'm working with vanilla C.

I'd like to write:

very_long_type_identifier *
very_long_function_name(
        very_long_type_identifier_1 * very_long_argument_name_1,
        very_long_type_identifier_2 * very_long_argument_name_2)

where the argument declarations are indented two levels.

However, Xcode's syntax-aware indenting insists on converting the above into:

very_long_type_identifier *
    very_long_function_name(
                            very_long_type_identifier_1 * very_long_argument_name_1,
                            very_long_type_identifier_2 * very_long_argument_name_2)

where the function name is indented one level, and the argument declarations are aligned with opening parenthesis of the argument list.

The "Source Code Formatting User Defaults" document didn't seem to provide any configuration settings to help, but perhaps I'm not reading it correctly.

Can Xcode's syntax-aware indenting be configured to match my preference?

Best regards,
-Steve

--
Steve Byan <email@hidden>
Littleton, MA 01460



 _______________________________________________
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

  • Prev by Date: Tab Bar Controller problem - never mind~
  • Next by Date: Re: Debugging plugins running within the 32-Bit Audio Unit Bridge
  • Previous by thread: Tab Bar Controller problem - never mind~
  • Next by thread: Re: Debugging plugins running within the 32-Bit Audio Unit Bridge
  • Index(es):
    • Date
    • Thread