A folding builder helps you to fold the code regions and replace it with specific text.

12.1. Define a folding builder

Let's replace usages of properties with its values by default.

{% include /code_samples/simple_language_plugin/src/com/simpleplugin/SimpleFoldingBuilder.java %}

12.2. Register the folding builder

<lang.foldingBuilder language="JAVA" implementationClass="com.simpleplugin.SimpleFoldingBuilder"/>

12.3. Run the project

Now when we open a Java file, it shows the property's value instead of the key.

Folding

Previous Top Next

results matching ""

    No results matching ""