Android Gradle script format control
Answered
Is it possible for intellij auto format the gradle code that looks
dependencies {
implementation 'com.jjoe64:graphview:3.1.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
to
dependencies
{
implementation 'com.jjoe64:graphview:3.1.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
braces should start below d of dependencies.
Tried groovy format, but could not find how to control, the best I could get is (with manually putting opening brace in next line)
dependencies
{
implementation 'com.jjoe64:graphview:3.1.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
Please sign in to leave a comment.
Hello,
Currently there is no dedicated code style for Gradle files. Feel free to create feature request on YouTrack: https://youtrack.jetbrains.com/issues/IDEA