diff --git a/platform/lang-impl/src/com/intellij/application/options/editor/EditorCheckBoxConfigurable.kt b/platform/lang-impl/src/com/intellij/application/options/editor/EditorCheckBoxConfigurable.kt index 51151f809385..21512bf24f73 100644 --- a/platform/lang-impl/src/com/intellij/application/options/editor/EditorCheckBoxConfigurable.kt +++ b/platform/lang-impl/src/com/intellij/application/options/editor/EditorCheckBoxConfigurable.kt @@ -71,39 +71,29 @@ class EditorCheckBoxConfigurable : BoundConfigurable(""), SearchableConfigurable override fun createPanel(): DialogPanel { return panel { - row { - titledRow(message("group.advanced.mouse.usages")) { - row { checkBox(honorCamelHumpsWhenSelectingByClicking) } - row { checkBox(enableWheelFontChange) } - row { checkBox(enableDnD) } - } + titledRow(message("group.advanced.mouse.usages")) { + row { checkBox(honorCamelHumpsWhenSelectingByClicking) } + row { checkBox(enableWheelFontChange) } + row { checkBox(enableDnD) } } - row { - titledRow(message("group.virtual.space")) { - row { checkBox(virtualSpace) } - row { checkBox(caretInsideTabs) } - row { checkBox(virtualPageAtBottom) } - } + titledRow(message("group.virtual.space")) { + row { checkBox(virtualSpace) } + row { checkBox(caretInsideTabs) } + row { checkBox(virtualPageAtBottom) } } - row { - titledRow(message("group.brace.highlighting")) { - row { checkBox(highlightBraces) } - row { checkBox(highlightScope) } - row { checkBox(highlightIdentifierUnderCaret) } - } + titledRow(message("group.brace.highlighting")) { + row { checkBox(highlightBraces) } + row { checkBox(highlightScope) } + row { checkBox(highlightIdentifierUnderCaret) } } - row { - titledRow("Formatting") { - row { checkBox(showNotificationAfterReformatCodeCheckBox) } - row { checkBox(myShowNotificationAfterOptimizeImportsCheckBox) } - } + titledRow("Formatting") { + row { checkBox(showNotificationAfterReformatCodeCheckBox) } + row { checkBox(myShowNotificationAfterOptimizeImportsCheckBox) } } - row { - titledRow("Refactorings") { - row { checkBox(renameLocalVariablesInplace) } - row { checkBox(preselectCheckBox) } - row { checkBox(showInlineDialogForCheckBox) } - } + titledRow("Refactorings") { + row { checkBox(renameLocalVariablesInplace) } + row { checkBox(preselectCheckBox) } + row { checkBox(showInlineDialogForCheckBox) } } } } diff --git a/platform/lang-impl/src/com/intellij/application/options/editor/EditorSmartKeysConfigurable.kt b/platform/lang-impl/src/com/intellij/application/options/editor/EditorSmartKeysConfigurable.kt index d5520f9ada49..4e1cbaa1965d 100644 --- a/platform/lang-impl/src/com/intellij/application/options/editor/EditorSmartKeysConfigurable.kt +++ b/platform/lang-impl/src/com/intellij/application/options/editor/EditorSmartKeysConfigurable.kt @@ -111,18 +111,16 @@ class EditorSmartKeysConfigurable : Configurable.WithEpDependencies, BoundCompos row { checkBox(myCbTabExistsBracketsAndQuotes) } - row { - titledRow("Enter") { + titledRow("Enter") { + row { + checkBox(myCbSmartIndentOnEnter) + } + row { + checkBox(myCbInsertPairCurlyBraceOnEnter) + } + if (hasAnyDocAwareCommenters()) { row { - checkBox(myCbSmartIndentOnEnter) - } - row { - checkBox(myCbInsertPairCurlyBraceOnEnter) - } - if (hasAnyDocAwareCommenters()) { - row { - checkBox(myCbInsertJavadocStubOnEnter) - } + checkBox(myCbInsertJavadocStubOnEnter) } } } diff --git a/platform/platform-impl/src/com/intellij/ide/GeneralSettingsConfigurable.kt b/platform/platform-impl/src/com/intellij/ide/GeneralSettingsConfigurable.kt index d3001b5fbef3..6e20bfedf634 100644 --- a/platform/platform-impl/src/com/intellij/ide/GeneralSettingsConfigurable.kt +++ b/platform/platform-impl/src/com/intellij/ide/GeneralSettingsConfigurable.kt @@ -58,76 +58,68 @@ class GeneralSettingsConfigurable: BoundCompositeConfigurable("HTML/CSS"), ConfigurableWithOptionDescriptors { override fun createPanel(): DialogPanel { return panel { - row { - titledRow(XmlBundle.message("xml.editor.options.misc.title")) { - row { - checkBox(myAutomaticallyInsertClosingTagCheckBox) - } - row { - checkBox(myAutomaticallyInsertRequiredAttributesCheckBox) - } - row { - checkBox(myAutomaticallyInsertRequiredSubTagsCheckBox) - } - row { - checkBox(myAutomaticallyStartAttributeAfterCheckBox) - } - row { - checkBox(myAddQuotasForAttributeValue) - } - row { - checkBox(myAutoCloseTagCheckBox) - } - row { - checkBox(mySyncTagEditing) - } + titledRow(XmlBundle.message("xml.editor.options.misc.title")) { + row { + checkBox(myAutomaticallyInsertClosingTagCheckBox) + } + row { + checkBox(myAutomaticallyInsertRequiredAttributesCheckBox) + } + row { + checkBox(myAutomaticallyInsertRequiredSubTagsCheckBox) + } + row { + checkBox(myAutomaticallyStartAttributeAfterCheckBox) + } + row { + checkBox(myAddQuotasForAttributeValue) + } + row { + checkBox(myAutoCloseTagCheckBox) + } + row { + checkBox(mySyncTagEditing) } } - row { - titledRow("CSS") { - row { - checkBox(mySelectWholeCssIdentifierOnDoubleClick) - } + titledRow("CSS") { + row { + checkBox(mySelectWholeCssIdentifierOnDoubleClick) } } for (configurable in configurables) {