Re: Xcode-users Digest, Vol 2, Issue 215
Re: Xcode-users Digest, Vol 2, Issue 215
- Subject: Re: Xcode-users Digest, Vol 2, Issue 215
- From: Cem Karan <email@hidden>
- Date: Mon, 23 May 2005 08:42:54 -0400
I don't know if there is a way in XCode, but try looking at the
manpages for the 'indent' command. You'll have to poke at the
various options, but I remember using it to unsnarl a bunch of code I
was working on at one point.
A word of caution though; I think it only handles C code, and not
necessarily the latest version. That means if you're using GNU
extensions, or C99 extensions, you might not get what you expect.
Make backups before using it.
Good luck,
Cem Karan
Message: 3
Date: Sun, 22 May 2005 00:06:10 -0600
From: David Hinz <email@hidden>
Subject: Brace preferences and reformatting code
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Is there a way in the Xcode 2.0 preferences to specify that I want
the "{" and "}" on a new line, i.e.:
while (true)
{
}
Not:
while (true) {
}
I seem to remember back in Project Builder (WebObjects) version or
previous versions of Xcode that it was possible to specify where a
brace should be.
If it is possible to set this preference, is there a way to reformat
an entire file so that the "}" and "{" are moved down to the next
line in an existing file? (Should Format->Re-indent do this?)
I'm sure I could write a script using AppleScript or Perl to re-
indent an existing file so that the braces are where I like them, but
this really should be part of Xcode.
I'm I just missing something in the Preferences or advanced
preferences via command line dwrite's?
The code formatting capabilities in Eclipse, JBuilder, and NetBeans
seems to be much more powerful that what is in Xcode.
david.
_______________________________________________
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