mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 17:27:49 +08:00
731 B
731 B
title |
---|
12. Folding Builder |
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 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.