Hi everyone,
I have a Golang project, and the cursor always automatically populates fields that don’t exist in the struct. How can I set it up to be accurate during auto-completion?
Hi everyone,
I have a Golang project, and the cursor always automatically populates fields that don’t exist in the struct. How can I set it up to be accurate during auto-completion?
Hi, the autocompletion (Tab) is automatic and does not have settings for accuracy.
It learns from your code and tries to suggest the best solution. As it does not always have enough info, it tries most logical names (order number → order status).
You can accept the autocompletion by word (CMD/CTRL ->) or full line (Tab).
In case a part of autocompletion is correct use the by word completion and then add your correct word.
Thanks for your reply!