diff options
Diffstat (limited to 'plugins/kotlin/plugin/resources/META-INF/formatter.xml')
-rw-r--r-- | plugins/kotlin/plugin/resources/META-INF/formatter.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/kotlin/plugin/resources/META-INF/formatter.xml b/plugins/kotlin/plugin/resources/META-INF/formatter.xml new file mode 100644 index 000000000000..7d166c629dac --- /dev/null +++ b/plugins/kotlin/plugin/resources/META-INF/formatter.xml @@ -0,0 +1,29 @@ +<idea-plugin> + <extensions defaultExtensionNs="com.intellij"> + <lang.formatter language="kotlin" implementationClass="org.jetbrains.kotlin.idea.formatter.KotlinFormattingModelBuilder"/> + + <lineIndentProvider implementation="org.jetbrains.kotlin.idea.formatter.KotlinLineIndentProvider"/> + + <preFormatProcessor implementation="org.jetbrains.kotlin.idea.formatter.KotlinPreFormatProcessor"/> + + <postFormatProcessor implementation="org.jetbrains.kotlin.idea.formatter.TrailingCommaPostFormatProcessor"/> + + <langCodeStyleSettingsProvider implementation="org.jetbrains.kotlin.idea.formatter.KotlinLanguageCodeStyleSettingsProvider"/> + + <codeStyleSettingsProvider implementation="org.jetbrains.kotlin.idea.formatter.KotlinGenerationSettingsProvider"/> + + <predefinedCodeStyle implementation="org.jetbrains.kotlin.idea.formatter.KotlinStyleGuideCodeStyle"/> + <predefinedCodeStyle implementation="org.jetbrains.kotlin.idea.formatter.KotlinObsoleteCodeStyle"/> + + <registryKey + key="kotlin.formatter.allowTrailingCommaInAnyProject" + description="Allow a trailing comma regardless of plugin version" + defaultValue="false" + restartRequired="false"/> + <registryKey + key="kotlin.formatter.allowTrailingCommaOnCallSite" + description="Allow a trailing comma on call-site" + defaultValue="false" + restartRequired="false"/> + </extensions> +</idea-plugin>
\ No newline at end of file |