x/tools/gopls: Complete return as a snippet #64266
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Feature suggestion
It would be convenient if the return keyword could be completed as a snippet that pre-populates the zero values of return parameters.
For example
would turn into
with the snippet cursor over "" and nil respectively.
Currently the keyword is only completed to a plain
return
. This could be an alternative completion ranked one step lower.The text was updated successfully, but these errors were encountered: