when the folding enabled ?
Answered
use Editor#getFoldingModel() then com.intellij.openapi.editor.FoldingModel#getAllFoldRegions, get empty array.
Please sign in to leave a comment.
Your question isn't clear.
I want folded some specific foldRegion automatic when editor display
If your plugin defines the folding area/replacement, see https://plugins.jetbrains.com/docs/intellij/folding-builder.html
thank you , if I use build-in folding, can I set the its isCollapsedByDefault to false?
there's com.intellij.lang.folding.FoldingBuilderEx#isCollapsedByDefault or use FoldingDescriptor CTOR with collapsedByDefault parameter