Open setanarut opened 5 months ago
Thanks for filing the issue. We are considering to remove or shorten the list of snippets this extension supplies using this go.json snippet file. https://github.com/golang/vscode-go/issues/160
Can you use the user snippet? https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets
Vscode always selects the
func
keyword first. This is because thefunc
snippet and thefunc
keyword are the same."editor.snippetSuggestions":"top"
, even if selected.https://github.com/golang/vscode-go/blob/5557e746a5565b0c44f0f44fcf0f6b08dff0683b/extension/snippets/go.json#L44
To fix change
func
tofu
.Before:
After:
I made a pull request but it was rejected. Because of the Contributor License Agreement (CLA). I can't waste my time on this.