How to prevent auto-completion to name return values?
When typing the return values of a function signature GoLand automatically inserts a default name, e.g. when entering
func A() (context.Co
GoLand suggest "ctx Context", but not the unnamed equivalent "Context" that I want 99% of the time. Hitting enter gets me
func A() (ctx context.Context
and I have to go back and manually remove "ctx".
Is there a way to disable this automatic naming? I can't find anything like it in the settings.
请先登录再写评论。
Cannot recreate. What IDE version you use?
GoLand 2018.3.1
Build #GO-183.4588.42, built on December 3, 2018
Licensed to Formulate AB / Christofer Bäcklin
Subscription is active until January 9, 2019
JRE: 1.8.0_152-release-1343-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.1
Seems like the behavior is different depending on if you have already written the closing parenthesis. I can live with that but it is a bit non-obvious.
> Seems like the behavior is different depending on if you have already written the closing parenthesis.
Indeed, it works like that. I'll fix this in 2019.1. It looks like not so trivial to type the code like on the screenshot, so the fix is not going to be backported.
hey, see if this helps? https://www.jetbrains.com/help/idea/managing-tasks-and-context.html