Autocompleting parentheses in Visual Studio Code in Go


(cinematik) #1

While using of Visual Studio Code I’ve noticed that when I write function from autocomlete it never autocomlete with parentheses. For example:

fmt. //now select a function Print(a ...interface{}) from autocomplete
fmt.Print //why the  parentheses have not been inserted automaticaly?

Is it always so in VS code or it is somehow related to the golang setting for VS code?
Is there a way how to fix that?


(Johan Dahl) #2

Hi. See here https://github.com/Microsoft/vscode-go/issues/276#issuecomment-205439716