Reputation: 530
My question is very similar to this question however I can't create the same rule set for Kotlin. Kotlin "Code Style" does not have
Simple blocks in one line
Under its "Keep when reformatting" list
How can I keep else -> {}
as opposed to
else -> {
}
For Kotlin styling?
-Otterman
Upvotes: 1
Views: 346
Reputation: 56
This feature is not implemented in Kotlin yet.
It is tracked here: https://youtrack.jetbrains.com/issue/KT-12491
Upvotes: 2