Fold/un fold a specific region by code (from a plugin)

Answered

I would like to fold code regions by "name" from my plugin
//<editor-fold "myregion">
//</editor-fold "myregion">
do you have something like :
- foldingManager.foldRegion("myregion");
- foldingManager.unFoldRegion("myregion");

Nb : I just want to fold / unfold the regions by name, not get or set the content

0
1 comment

See com.intellij.codeInsight.folding.impl.CollapseExpandDocCommentsHandler

0

Please sign in to leave a comment.