This plugin was created to address a limitation in JetBrains IntelliJ IDEA where users were unable to fold certain types of code in the editor. The feature was tracked in YouTrack issue KTIJ-13082, which remained open for several years before the functionality was finally added as a default feature in recent versions of the IDE.
View on JetBrains Marketplace | Original Issue: KTIJ-13082
Project Overview
The Kotlin Advanced Folding plugin extends IntelliJ IDEA's code folding capabilities specifically for Kotlin files. Code folding is an essential feature for managing large codebases, allowing developers to collapse and expand code sections to focus on relevant parts of their code. This specifically became an issue for me when working on large kotlin controller files and the inline api docs were not foldable and made navigating the files cumbersome. This plugin addressed a long-standing community request and provided immediate value to Kotlin developers struggling navigating large codebases.
Specifically, it adds code folding for: Annotations, Arrays/Collections, Method definitions and Method calls.
In my use case, this plugin significantly improved my productivity by allowing me to collapse large blocks of Api Doc Annotations that we used to create self-documenting code.
Technologies Used: Kotlin, IntelliJ Platform SDK, JetBrains Plugin Development
Note: Recent versions of IntelliJ IDEA (2025.3 and later) now include native support for folding Annotations, Arrays/Collections, Method definitions and Method calls. Which means this plugin may no longer be necessary for users on the latest IDE versions. However, it remains available for users on older versions of IntelliJ IDEA.