golang/go
View on GitHubx/tools/gopls: add a method snippet to postfix completion
Open
#55,154 opened on Sep 18, 2022
FeatureRequestToolsgoplshelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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) _() {
}