Skip to content

changchengqin/indent-folder

Repository files navigation

IndentFolder

Plugin for IntelliJ platform IDEs.

Enable folding by identation,fix IDEA-320234

Usage

  1. Download the latest version of the plugin JAR file from Releases to your local machine.
  2. Open your IntelliJ Platform IDE, navigate to Settings -> Plugins, and install the plugin using Install Plugin From Disk...
  3. 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 {
    
    }
  4. 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
    
    }

Example

image

About

Enable folding by identation for IntelliJ platform IDEs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages