method folding
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
method folding
don't know if you have seen the visual c# editor(probably a visual studio .net phenomena)? It looks like it has a really nice feuture which seems to be called method folding. I've seen this in an editor called Vim before but not as great looking as vsc#. Anyway, it works as this:
Each black of code, { ... }, is possible to collapse into one single line and your code will look somewhat like windows explorer, eg. you get a little [+] or [-] sign infront of each line that contains a {.
You'll gain alot on this since you get a fast overview of your code.
I would really really really like to see this feuture in textpad...
-
- Posts: 9
- Joined: Fri Mar 14, 2003 9:10 pm
- Location: Chicago
Makes sense....Seen elsewhere...
This is real popular in the Lotus Notes arena. The +/- are called twisties.
I could see this at the method and the class level. example....
- class A
{
___+ void A()
___- void A(int p1, int p2, int p3)
___{ body text
___}
___+ int method1 (String s1)
}
+ class B (blah blah)
+ class Listener (blah blah)
Where _ is a blank character to preserve spacing.
HOw about folks?
I could see this at the method and the class level. example....
- class A
{
___+ void A()
___- void A(int p1, int p2, int p3)
___{ body text
___}
___+ int method1 (String s1)
}
+ class B (blah blah)
+ class Listener (blah blah)
Where _ is a blank character to preserve spacing.
HOw about folks?
It's just a text editor
I don't see much use in adding all of these bells and whistles to a text editor. It's NOT a full-fledged IDE, and shouldn't be expected to include all the features of one.
Also, consider this:
I've worked with about a half-dozen Java IDE's:
Visual Cafe, (2 different versions,)
Allaire Kawa
Sun Forte
Borland JBuilder
IBM Visual Age
And you know what? With the exception of Kawa, (which is no loger available -- Dag!) every damn one of these applications crashed. They all crashed, and most of them fairly often. By comparison, TextPad has never crashed. Not once.
As a text editor, TextPad is never ever sick at sea. I'd rather have that than some inconsequential bell or whistle.
Also, consider this:
I've worked with about a half-dozen Java IDE's:
Visual Cafe, (2 different versions,)
Allaire Kawa
Sun Forte
Borland JBuilder
IBM Visual Age
And you know what? With the exception of Kawa, (which is no loger available -- Dag!) every damn one of these applications crashed. They all crashed, and most of them fairly often. By comparison, TextPad has never crashed. Not once.
As a text editor, TextPad is never ever sick at sea. I'd rather have that than some inconsequential bell or whistle.
Re: It's just a text editor
Did you try Netbeans? I've never seen it crash so I'm just wondering.
I agree with your point on TP being stable, but I would love to see
folding and italics/bold, without giving away TP's stabilty.
I agree with your point on TP being stable, but I would love to see
folding and italics/bold, without giving away TP's stabilty.
Garrett wrote:And you know what? With the exception of Kawa, (which is no loger available -- Dag!) every damn one of these applications crashed. They all crashed, and most of them fairly often. By comparison, TextPad has never crashed. Not once.