toranoko0518
toranoko0518

Reputation: 11

How to set Gradle's indent

I use Android Studio. I want to set Gradle's indent, but that config item was not found. For example, I want to set

ext.config = [
        'compileSdk': 28,
        'minSdk'    : 21,
        'targetSdk' : 28
]

to

ext.config = [
    'compileSdk': 28,
    'minSdk': 21,
    'targetSdk': 28
]

Do you have any good ideas?

Upvotes: 1

Views: 669

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402225

Groovy code style should apply to the Gradle build files (unless they are .kts in which case Kotlin style applies):

Groovy

Upvotes: 1

Related Questions