• 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
Brace preferences and reformatting code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to see the compiler command / output??
  • Next by Date: conversion from numeric to symbolic addresses using atos on different computers
  • Previous by thread: Re: How to see the compiler command / output??
  • Next by thread: conversion from numeric to symbolic addresses using atos on different computers
  • Index(es):
    • Date
    • Thread