-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Default continuation indent for Android should be 8 not 4 #120
Comments
@MyDogTom right. Thanks for pointing it out. |
I think this was recently changed to be 4. They wanted to have the fields in classes aligned with everything else and hence they made that change. android/kotlin-guides#37 |
@vanniktech see latest https://github.com/android/kotlin-guides/blob/master/style.md#continuation-indent. @MyDogTom is right. Android Kotlin Style Guide prescribes +8 continuation indentation (+4 for parameters). |
This reverts commit ed26117. As per discussion from the GitHub issue [1], the default continuation indent should be 8 rather than 4. This matches the Android Kotlin style guide. [1] pinterest#120
This reverts commit ed26117. As per discussion from the GitHub issue [1], the default continuation indent for Android should be 8 rather than 4. This matches the Android Kotlin style guide. [1] pinterest#120
"Android Kotlin Style Guide prescribes +8 continuation indentation (+4 for parameters)." Is there a way to specify that in IntelliJ / Android Studio? The "continuation indent" setting seems to control both. |
This commit changes continuation indent from 8 to 4.
According to Android Kotlin style guide it should be 8.
I guess confusion comes from android/kotlin-guides#37. But that issue is about usage of "indent" instead of "continuation indent" for parameter list. Not about changing the size of continuation indent.
The text was updated successfully, but these errors were encountered: