【发布时间】:2020-05-02 09:49:35
【问题描述】:
我使用Spotless Gradle plugin 来确保我的应用程序中Java 代码的格式一致。 build.gradle中的相关条目是
plugins {
id "com.diffplug.gradle.spotless" version "3.27.0"
}
spotless {
java {
// The available versions of the Eclipse JDT formatter are defined here
// https://github.com/diffplug/spotless/tree/master/lib-extra/src/main/resources/com/diffplug/spotless/extra/eclipse_jdt_formatter
eclipse('4.13.0')
indentWithSpaces()
removeUnusedImports()
}
}
有什么方法可以配置 IntelliJ 以使用相同的格式设置?
【问题讨论】:
-
我会在 IntelliJ 论坛上问这个问题,因为了解它的开发人员最好定期跟踪这些论坛。
标签: java intellij-idea spotless