Plugin for IntelliJ platform IDEs.
Enable folding by identation,fix IDEA-320234
- Download the latest version of the plugin JAR file from Releases to your local machine.
- Open your IntelliJ Platform IDE, navigate to
Settings -> Plugins
, and install the plugin usingInstall Plugin From Disk...
- In class-level comments, mark the current class for enabling this plugin with the following keywords:
package com.github.changchengqin.indentationfolder; import java.util.*; /** * use indentation-based folding strategy */ public class IndentationFoldingBuilder implements FoldingBuilder { }
- Additionally, within methods, you can specify the scope of code to be affected by this plugin using two single-line comments.
private void methodName() { // indentation-based folding start code... // indentation-based folding end }