How to indent the CheckBoxes of custom extension settings?
Answered
Hi, folks:
I created a plugin. The option switch is in File > Settings > Editor > Code Folding > MyFolding.
I want to indent specific CheckBoxes, but I don't know how to set it up.
plugin.xml<extensions defaultExtensionNs="com.intellij">
<lang.foldingBuilder language="JAVA" implementationClass="com.intellij.myextension.MyFoldingBuilder"/>
<codeFoldingOptionsProvider instance="com.intellij.myextension.MyFoldingOptionsProvider"/>
</extensions>
package com.intellij.myextension;
public class MyFoldingOptionsProvider extends com.intellij.openapi.options.BeanConfigurable<MyFoldingSettings.State> implements com.intellij.application.options.editor.CodeFoldingOptionsProvider {
protected MyFoldingOptionsProvider() {
setTitle("MyFolding");
checkBox("showWhitespaces", "Show whitespaces");
checkBox("leading", "Leading");
checkBox("inner", "Inner");
checkBox("trailing", "Trailing");
checkBox("selection", "Selection");
}
}
The effect I want to achieve is as follows:
Please sign in to leave a comment.
Hi,
I don't see a way to do this with
BeanConfigurable
. Options are built using the exposed methods and there is no point where indent could be added.