如何在VS Code中保存时运行Make文件-使用go扩展

How can I run a make build on save in VS Code on save event?

I can see that I can do something like the following.

{
    "go.buildOnSave": "workspace"
}

I guess the lack doc. is be cause it is just basic VS Code - on setting a command.

How can I run a make build on save in VS Code on save event?

The Build, Lint and Vet of the VSCode Go extension from Microsoft (v1.26) currently based on go build. You can choose the preset option for package (default), workspace, or off. See vscode-go/goBuild.ts

If you would like to have a custom build i.e. make build on your workspace, you can set VSCode Custom Tasks instead.