https://kotlinlang.org logo
#intellij
Title
# intellij
k

Klitos Kyriacou

08/19/2022, 10:27 AM
I've just upgraded from 2022.1 to 2022.2.1. There are a couple of things that I'd like to change but haven't figured out how to: 1. When I type a curly bracket or parenthesis and press Enter (for example, if I type
fun main() {}
and press Enter with the cursor between the two curly brackets, it now adds two blank lines instead of one (actually, this happened before the upgrade, about 2 weeks ago, so maybe some configuration had changed by accident). See the screenshot to see how it looks just after pressing Enter - see the 2 lines which should be 1. How do I get it back to adding just 1 line? 2. In 2022.1, when I used an incorrect number of spaces (contravening the Kotlin Style Guide), it showed a grey squiggly line (as in the screenshot). Now, in 2022.2.1, that line has disappeared, so I no longer see if my indentation or spacing has gone wrong. How do I revert it?
a

Alexey Belkov [JB]

08/19/2022, 10:44 AM
2. Check that you have enabled “Inspections | General | Incorrect formatting”
k

Klitos Kyriacou

08/19/2022, 11:22 AM
Thanks, it was enabled. I disabled and re-enabled it and now it behaves intermittently: it sometimes shows the markers and sometimes not.
a

Alexey Belkov [JB]

08/19/2022, 1:00 PM
Can you please create two separate issues in https://youtrack.jetbrains.com/issues/KTIJ and attach code to reproduce and your IDE settings (File | Manage IDE settings | Export settings).
2 Views