Anyone else has an issue with formatting 'when' st...
# announcements
r
Anyone else has an issue with formatting 'when' statements after upgrading to kotlin 1.4.0+? There is a setting
Align when branches in columns
which is broken for us after the update. Please see the screenshots for actual and expected behavior.
đź‘€ 1
y
Yes, we have the same problem. It makes our code style inconsistent, very annoying.
m
@Roland Yeghiazaryan Thank you for pointing it out! There is issue in youtrack, feel free to vote or comment: https://youtrack.jetbrains.com/issue/KT-40701
r
Thanks!
The issues is marked as fixed, but we still have it in latest Android Studio with Kotlin 1.4.10. @Margarita Bobova
m
@Roland Yeghiazaryan What IDEA build number is installed? You can check it in “About IntelliJ”
r
Android Studio 4.1 Build #AI-201.8743.12.41.6858069, built on September 23, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
m
Fix for the issue is released with newer versions started with build number 203-1.4.10-release-IJ4987 🙂
r
Thanks!