Reputation: 25974
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.
Upvotes: 0
Views: 3276
Reputation: 18835
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.
Upvotes: 1