-
I vaguely remember there was one when I used vscode to write Go before. For example, for variables of slice, map, and string types, by adding There was also a similar feature for slice type variables, by adding After my previous computer broke down, I couldn't find the corresponding configuration on my new computer. Anyone knows how to impl it? I would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found it! I just need to modify this configuration Actually, this should be a feature of the gopls, and I've found the code link for it. https://github.com/golang/tools/blob/master/gopls/internal/lsp/source/completion/postfix_snippets.go |
Beta Was this translation helpful? Give feedback.
I found it! I just need to modify this configuration
"[go]":{ "editor.snippetSuggestions": "none" }
(none -> bottom/inline/top).Actually, this should be a feature of the gopls, and I've found the code link for it. https://github.com/golang/tools/blob/master/gopls/internal/lsp/source/completion/postfix_snippets.go