Skip to content

x/tools/gopls: add a method snippet to postfix completion #55154

Open
@THOUSAND-SKY

Description

@THOUSAND-SKY

Is your feature request related to a problem? Please describe.
Typing out methods is tedious because one always has to fill the receiver field. The meth snippet is great but this would be even better.

Describe the solution you'd like
It would be real slick to have a completion from:

type X struct {}

X.meth!

to

type X struct {}

func (x X) _() {
}

Metadata

Metadata

Assignees

Labels

FeatureRequestIssues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.help wanted

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions