本文整理汇总了Java中com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable.showAllStandardOptions方法的典型用法代码示例。如果您正苦于以下问题:Java CodeStyleSettingsCustomizable.showAllStandardOptions方法的具体用法?Java CodeStyleSettingsCustomizable.showAllStandardOptions怎么用?Java CodeStyleSettingsCustomizable.showAllStandardOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable
的用法示例。
在下文中一共展示了CodeStyleSettingsCustomizable.showAllStandardOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: customizeSettings
import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
if (settingsType == SettingsType.INDENT_SETTINGS) {
consumer.showAllStandardOptions();
} else if (settingsType == SettingsType.SPACING_SETTINGS) {
consumer.showStandardOptions("SPACE_AROUND_ASSIGNMENT_OPERATORS",
"SPACE_AROUND_EQUALITY_OPERATORS",
"SPACE_BEFORE_CLASS_LBRACE",
"SPACE_BEFORE_METHOD_LBRACE",
"SPACE_BEFORE_METHOD_LBRACE",
"SPACE_WITHIN_BRACKETS",
"SPACE_AFTER_SEMICOLON",
"SPACE_BEFORE_SEMICOLON",
"SPACE_AFTER_COLON");
consumer.renameStandardOption("SPACE_AROUND_ASSIGNMENT_OPERATORS", "Attribute operator");
consumer.renameStandardOption("SPACE_BEFORE_CLASS_LBRACE", "Space before {");
consumer.renameStandardOption("SPACE_BEFORE_METHOD_LBRACE", "Space before [");
} else if (settingsType == SettingsType.BLANK_LINES_SETTINGS) {
consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE");
}
}
示例2: customizeSettings
import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
if (settingsType == SettingsType.INDENT_SETTINGS) {
//consumer.showStandardOptions("SPACE_AROUND_ASSIGNMENT_OPERATORS");
consumer.showAllStandardOptions();
}
}
示例3: customizeSettings
import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
if (settingsType == SettingsType.INDENT_SETTINGS) {
consumer.showAllStandardOptions();
}
}
示例4: customizeSettings
import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable; //导入方法依赖的package包/类
@Override
public void customizeSettings(@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) {
consumer.showAllStandardOptions();
}