explicit fold like jEdit {{{

Hi, I wonder if a plugin exists to support such folds.
In fact I don't like much Idea folding method.
I don't like the idea of foldings settings in project file.
I would prefer folding control directly in sources like the explicit
fold in jEdit

It's simple, you only have a comment with
// {{{ the fold title
some code
// }}}


and when it's folded there is only a line with the title of the fold.
So when I give my sources to somebody else he can have the folds I have.
Does it exists or maybe I could send a feature request for that ?

4 comments

It doesn't exist. I don't see how you would share folding info without modifying the source file (which is a no-no). The stuff that I would most likely share is handled in the base config of IntelliJ. IMHO, they should add a capability to that so that you can use regular expressions. I'd also like to see folding groups so that instead of folding individual setters/getters, they get folded into one group.

0

You can fold an arbitrary portion of code by View->Folding->Fold Selection/Remove Region. The fold marks stay in place until you use this feature again for the same region. The information about the fold marks are saved in the workspace file of your project (the one with the iws suffix). So you can share them with others via CVS and don't need to annotate your code for it.

0

Robert F. Beeger wrote:

You can fold an arbitrary portion of code by View->Folding->Fold
Selection/Remove Region. The fold marks stay in place until you use
this feature again for the same region. The information about the
fold marks are saved in the workspace file of your project (the one
with the iws suffix). So you can share them with others via CVS and
don't need to annotate your code for it.


Sharing workspace file is not cool. It stores things like docked window
positions and breakpoints.

0

Marc Stock a écrit :

It doesn't exist. I don't see how you would share folding info without modifying the source file (which is a no-no). The stuff that I would most likely share is handled in the base config of IntelliJ. IMHO, they should add a capability to that so that you can use regular expressions. I'd also like to see folding groups so that instead of folding individual setters/getters, they get folded into one group.


You're right it requires to modify the source file and that's exactly
what I want to do.

0

Please sign in to leave a comment.