The right ) is not in the correct position when wrapping

已完成

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:

 

 

评论操作 固定链接

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

请先登录再写评论。