Last active
May 29, 2016 01:07
-
-
Save bsed/6a84f04eb51230d7c20287bd57da6f79 to your computer and use it in GitHub Desktop.
VSCode+Golang settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//-------- Go configuration -------- | |
"files.autoSave": "onFocusChange", | |
// Run 'go build'/'go test' on save. | |
"go.buildOnSave": true, | |
// Run 'golint' on save. | |
"go.lintOnSave": true, | |
// Run 'go tool vet' on save. | |
"go.vetOnSave": true, | |
// Flags to `go build`/`go test` used during build-on-save or running tests. (e.g. ['-ldflags="-s"']) | |
"go.buildFlags": [], | |
// Flags to pass to `golint` (e.g. ['-min_confidenc=.8']) | |
"go.lintFlags": [], | |
// Flags to pass to `go tool vet` (e.g. ['-all', '-shadow']) | |
"go.vetFlags": [], | |
// [EXPERIMENTAL] Run formatting tool on save. | |
"go.formatOnSave": true, | |
// Pick 'gofmt', 'goimports' or 'goreturns' to run on format. | |
"go.formatTool": "gofmt", | |
// Complete functions with their parameter signature | |
"go.useCodeSnippetsOnFunctionSuggest": false, | |
// Run 'go test -coverprofile' on save | |
"go.coverOnSave": false, | |
// Specifies the timeout for go test in ParseDuration format. | |
"go.testTimeout": "30s", | |
// Enable gocode's autobuild feature | |
"go.gocodeAutoBuild": false, | |
// Specifies the GOROOT to use when no environment variable is set. | |
"go.goroot": "/home/kelvin/go", | |
// Specifies the GOPATH to use when no environment variable is set. | |
"go.gopath": "/home/kelvin/gocode" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment