[ANN] CodeFolder 0.2

the new version can be found at:

http://www.intellij.org/twiki/bin/view/Main/CodeFolder/

- added folding for try, catch, finally statements

- classes and anonymous classes can also be folded

- refactored the design to support quick addition of new
element types

Folding of elements at creation time can now be controlled by
a fold by default option.

Known Issues
-


After folding has been enabled, new elements will not be folded.

For example, if you fold if statements and then create an if statement
in your code it will not be folded.

A work around for now is to go to the configuration ui and disable
and then reenable folding for if statements.

Again any requests and comments are welcome.

Kelly Ray Jensen

9 comments
Comment actions Permalink

Also, folding has been modified so that you can see the conditions:

if (true)
{
System.out.println("hello world");
}

will be folded as:

if (true)
{...}

instead of:

if (...)

Only statements that have a code block ({, }) will be folded.

Kelly


On Mon, 09 Dec 2002 01:29:49 +0000, Kelly Ray Jensen wrote:

the new version can be found at:

http://www.intellij.org/twiki/bin/view/Main/CodeFolder/

- added folding for try, catch, finally statements

- classes and anonymous classes can also be folded

- refactored the design to support quick addition of new
element types

Folding of elements at creation time can now be controlled by
a fold by default option.

Known Issues
---------------
After folding has been enabled, new elements will not be folded.

For example, if you fold if statements and then create an if statement
in your code it will not be folded.

A work around for now is to go to the configuration ui and disable
and then reenable folding for if statements.

Again any requests and comments are welcome.

Kelly Ray Jensen


0
Comment actions Permalink

Geez I forgot something else...

Actions for collapsing and expanding folded code have also been added to
the menu (View | Folding) and popup menu (Folding).

I'll be quite now.

Kelly

0
Comment actions Permalink

This is going to be great. Thanks for a great plugin!

Jacques
"Kelly Ray Jensen" <kellyrayj@myrealbox.com> wrote in message
news:pan.2002.12.09.09.46.32.354386@myrealbox.com...

Geez I forgot something else...

>

Actions for collapsing and expanding folded code have also been added to
the menu (View | Folding) and popup menu (Folding).

>

I'll be quite now.

>

Kelly



0
Comment actions Permalink

I have the following issues:

1. 2 icons in the project properties (both are selected).
2. Right click menu for folding has all items (even disabled elements).
3. Folding menu IMHO should be arranged as Folding->Collapse->* and
Folding->Expand->* and not the way it is now.

Otherwise, great plugin!

Amnon

"Kelly Ray Jensen" <kellyrayj@myrealbox.com> wrote in message
news:pan.2002.12.09.09.29.49.857284@myrealbox.com...

the new version can be found at:

>

http://www.intellij.org/twiki/bin/view/Main/CodeFolder/

>

- added folding for try, catch, finally statements

>

- classes and anonymous classes can also be folded

>

- refactored the design to support quick addition of new
element types

>

Folding of elements at creation time can now be controlled by
a fold by default option.

>

Known Issues
---------------
After folding has been enabled, new elements will not be folded.

>

For example, if you fold if statements and then create an if statement
in your code it will not be folded.

>

A work around for now is to go to the configuration ui and disable
and then reenable folding for if statements.

>

Again any requests and comments are welcome.

>

Kelly Ray Jensen



0
Comment actions Permalink


Amnon I. Govrin wrote:

I have the following issues:

>

1. 2 icons in the project properties (both are selected).


Thats weired!

Do you have version 0.1 installed also?

>

2. Right click menu for folding has all items (even disabled elements).



I will add this for the next version.

>

3. Folding menu IMHO should be arranged as Folding->Collapse->* and
Folding->Expand->* and not the way it is now.



Great suggestion! I will add this also to the next version.

thanks,

Kelly

0
Comment actions Permalink

There is no way to fold the 'else' part of an 'if' statement.

Excellent plugin!

Marius

Kelly Ray Jensen wrote:

the new version can be found at:

http://www.intellij.org/twiki/bin/view/Main/CodeFolder/

- added folding for try, catch, finally statements

- classes and anonymous classes can also be folded

- refactored the design to support quick addition of new
element types

Folding of elements at creation time can now be controlled by
a fold by default option.

Known Issues
---------------
After folding has been enabled, new elements will not be folded.

For example, if you fold if statements and then create an if statement
in your code it will not be folded.

A work around for now is to go to the configuration ui and disable
and then reenable folding for if statements.

Again any requests and comments are welcome.

Kelly Ray Jensen


0
Comment actions Permalink


"Kelly Ray Jensen" <kellyrayj@myrealbox.com> wrote in message
news:at2i8l$24t$1@is.intellij.net...
>
>

Amnon I. Govrin wrote:

>

I have the following issues:

>

1. 2 icons in the project properties (both are selected).

>

Thats weired!

>

Do you have version 0.1 installed also?

Oh, that (&%*& Explorer sorting :)
>

>

2. Right click menu for folding has all items (even disabled elements).

>
>

I will add this for the next version.

>

>

3. Folding menu IMHO should be arranged as Folding->Collapse->* and
Folding->Expand->* and not the way it is now.

>
>

Great suggestion! I will add this also to the next version.

>

thanks,

>

Kelly

>
Coolness!

Thanks,
Amnon


0
Comment actions Permalink

Kelly Ray Jensen wrote:

Again any requests and comments are welcome.


I'd love to have a way of automatically folding if statements where the
condition satisfies a specific regexp.

This may seem weird, but it would be applicable to a lot of debugging
and tracing statements in my current project -- it would be nice if I
could automatically fold away those things that are only executed above
a certain verbosity level and concentrate on the actual algorithms.

0
Comment actions Permalink

Hello,

A very nice plugin (but for the hitch of not detecting new blocks) Great job.

If possible I would prefer to see the first lin of the folded block (Actually the code before the "{")
for example:
if (value == null) {
System.out.println(" Error ");
}
I would like to see it as :
if (value == null) {...}
Other than :
if (...)

because a lot of times when I view code, I don't want to see such blocks, or I don't want to see a for loop on some variable, and I couldn't know which is which without expanding the block, then collapse it again if it is not the one I want.

I think that this is the default behavior of IDEA (in folding the methods, you can see the header, but the body is folded) may be this would be an enhancement for the plugin.

Again Good work,
Best Regards,
Mohamed.

0

Please sign in to leave a comment.