Re: VS.NET-style code outlining?
Re: VS.NET-style code outlining?
- Subject: Re: VS.NET-style code outlining?
- From: Martin-Gilles Lavoie <email@hidden>
- Date: Mon, 23 Feb 2004 15:02:30 -0500
Le 22 fivr. 2004, ` 07:32, Jonathan del Strother a icrit :
Is there any way of having VS.NET's outlining feature in XCode? Any
plugins, Applescripts, anything?
I'm assuming the answer is no, but it couldn't hurt to ask...
For those who aren't familiar with VS.NET, outlining allows you to
collapse code blocks (loops, if-sections, or entire functions) to a
single line. There's a little '+' icon next to the line that you can
click to expand the function back out again.
It's a fantastic feature for allowing you to hide functions that
aren't relevant to what you're currently working on, and I'm sorely
missing it after being so used to VS.NET....
KDevelop also has this feature.
It's nice, but I'd ratter it to be taken a bit further.
Those who, like me, toyed with Oberon-F a bit might recognise this
feature. In Oberon-F, the system that implements Objeron, the language,
any text stream are actually meta-objects streams where real objects
can be inserted. Applying a style to a "text" run actually inserts an
object within the meta object stream. This actually makes it possible
to embed any kind of object within the "test". This is where it gets
fun;
One of the cool features of the compiler was that it used this inherent
ability of Oberon to grok text out of any object. One of the object
kind you could insert into your source code was a collapser. Much like
VS.NET's outlining feature of KDevelop's one, any text range could be
enclosed in a collapser. When expanded, the collapser revealed all of
the code. When collapsed, it would reveal, italicised, only a comment
text that could be used to describe the content (this comment was
actually not visible in the expanded block).
The result was that entire sources could be collapsed down to pseudo
code and easily be understood at first glance. Expand the code blocks
and get more embedded pseudo code and actual code.
For XCode to be able to do this, it would require it to collapse
matching braces and display the first comment block within the matching
braces. Something like
[italic] load preferences
could expand to something like
{
/* load preferences */
...
}
______________________________________________________________________
Martin-Gilles Lavoie
Opinions expressed herein are just that.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.