method folding

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
etromic

method folding

Post by etromic »

:idea:
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...
frbcoindude
Posts: 9
Joined: Fri Mar 14, 2003 9:10 pm
Location: Chicago

Makes sense....Seen elsewhere...

Post by frbcoindude »

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?
Garrett

It's just a text editor

Post by Garrett »

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.
Guest

Re: It's just a text editor

Post by Guest »

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.
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.
Post Reply