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!

 

 

 

 

 

 

0
4 comments

What language/file type do you use?

0

Serge Baranov  Oh, It's Kotlin and .kt files. I didn't know that's relavant. 

0

Yes, it's a known Kotlin-specific issue: https://youtrack.jetbrains.com/issue/KTIJ-11939 .

It doesn't happen with Java.

0

Thank you. I'll track the issue from now.

0

Please sign in to leave a comment.