-
Notifications
You must be signed in to change notification settings - Fork 646
Generate method stub #277
Comments
Happy to accept a PR for this. It should be possible to build this as a VS Code |
From @klaidliadon in #1620 It would be nice to have a "create function/method" command for functions/methods that are not yet defined. For instance: type a int64
type s struct{}
func main(){
var err error
if err = someFunc(a(1), s{}); err != nil {
log.Fatal(err)
}
} Should create something like: func someFunc(v1 a, v2 s){
return nil
} |
Closing this issue for the below reasons:
If there is such a Go tool, I would prefer this feature be implemented as a separate VS Code extension. This is because as VS Code and this extension has gained popularity, we have seen a gradual scope creep over the past year. Being a sole maintainer of this project, it is getting a little hard to support all incoming requests and maintaining the ever growing set of features. Therefore, one criteria I am using now in the triaging process is whether the feature request would make sense as a separate extension. This current feature request appears to be so. |
Implement this old Visual Studio feature: https://msdn.microsoft.com/en-us/library/tcz8b6zc(v=vs.90).aspx
The text was updated successfully, but these errors were encountered: