Re: Xcode-users Digest, Vol 5, Issue 544
Re: Xcode-users Digest, Vol 5, Issue 544
- Subject: Re: Xcode-users Digest, Vol 5, Issue 544
- From: Alejandro Aragon <email@hidden>
- Date: Sat, 16 Aug 2008 10:48:24 -0500
Message: 13
Date: Sat, 16 Aug 2008 11:27:57 +0200
From: Alexander Heusel <email@hidden>
Subject: Re: what is the state of C++ support in xcode?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Is there a way to auto-format the entire code? instead of manually
shifting the code left or right? In eclipse you just press command-I
or
command-F and it auto-formats everything. I haven't
found a similar feature in xcode yet.
This tool is not included in Xcode itself, but I found it to be very
useful:
http://astyle.sourceforge.net/
It is a open-source (LGPL) code reformatter for C, C++, C# and
Java. It
compiled out of the box without
any problems and works like a charm. It can be used in Xcode through
textmacros.
Cheers,
Alexander
Thanks for replying. I worked with astyle before as a plug-in to
Eclipse and it works very nice. To my surprise, I didn't have to
compile it because I was able to download it using macports. Now, as
far as I know I could use this tool as a command line. You mentioned
something about using it as a textmacro, so I was wondering how you
did this. Maybe this is something you set during compilation of astyle?
Alejandro
_______________________________________________
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