The right ) is not in the correct position when wrapping

Completed

when call a function, I'd like the right ) were at new line start, like:

after wrapping, the ) were at the same line with cursor.

expected position:

 

 

0
4 comments

Space inside the brackets, then Enter. Does it help?

0

Thanks, it works, but why, is there any configuration I should set? It's the same as expected when `Enter` in other editor such as `PyCharm` or `IntelliJ IDEA`.

0

It was done especially to avoid compilation errors, please see: https://youtrack.jetbrains.com/issue/GO-9467/Pressing-enter-between-and-does-not-bring-caret-into-new-line-with-and-as-2-surrounding-lines#focus=Comments-27-4184294.0-0

it heavily depends on the language. It's ok to have newline after an argument in Python, but not in Go, so we intentionally override that behavior.

0

That makes sense, thanks!

1

Please sign in to leave a comment.