ballerina-platform / plugin-intellij

Ballerina extension for IntelliJ IDEA.
Apache License 2.0
116 stars 4 forks source link

Add code folding regions support #54

Closed ThemiraChathumina closed 6 months ago

ThemiraChathumina commented 6 months ago

Purpose

$subject. Related to https://github.com/ballerina-platform/plugin-intellij/issues/53

Approach

Brace matching algorithm is used for finding the content inside braces to fold. Import, comment and markdown doc string folding regions are captured by the related PSI tree nodes.

Samples

Import declaration image

Markdown documentation image

Comments image

Braced content image

Brace pipe content image