Complete Statement without newline ?
Answered
Hi. I coudn't find an option to enable/disable newline after Complete Statement executed. Is it possible to control the feature?
I will demonstrate what i want.
val a = 1
a.toStr
^cursor position
In this situation if code completion popup suggests “toString()” method, and i pressed cmd+shift+enter (complete statement hotkey),
val a = 1
a.toString()
^cursor position
this is what happend for now.
But I hope something like this:
val a = 1
a.toString()
^cursor position
Thank you in adavance!
Please sign in to leave a comment.
What language/file type do you use?
Serge Baranov Oh, It's Kotlin and .kt files. I didn't know that's relavant.
Yes, it's a known Kotlin-specific issue: https://youtrack.jetbrains.com/issue/KTIJ-11939 .
It doesn't happen with Java.
Thank you. I'll track the issue from now.