when the folding enabled ?

Answered

use   Editor#getFoldingModel()  then   com.intellij.openapi.editor.FoldingModel#getAllFoldRegions,  get empty array.

5 comments
Comment actions Permalink

Your question isn't clear.

0
Comment actions Permalink

I want folded some specific foldRegion automatic  when editor display

0
Comment actions Permalink

If your plugin defines the folding area/replacement, see https://plugins.jetbrains.com/docs/intellij/folding-builder.html

0
Comment actions Permalink

thank you ,  if  I use build-in folding,  can I set the its isCollapsedByDefault to false? 

0
Comment actions Permalink

there's com.intellij.lang.folding.FoldingBuilderEx#isCollapsedByDefault or use FoldingDescriptor CTOR with collapsedByDefault parameter

0

Please sign in to leave a comment.