Brace preferences and reformatting code
Brace preferences and reformatting code
- Subject: Brace preferences and reformatting code
- From: David Hinz <email@hidden>
- Date: Sun, 22 May 2005 00:06:10 -0600
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