Created
September 17, 2019 06:39
-
-
Save hrdtbs/7f4f985f8af962e705d807edd914eeb3 to your computer and use it in GitHub Desktop.
vscode settings: go modules, gopls, golangci-lint
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 Modules | |
"go.toolsEnvVars": {"GO111MODULE": "on"}, | |
// Formatter | |
"go.useLanguageServer": true, | |
"go.alternateTools": { | |
"go-langserver": "gopls" | |
}, | |
"go.languageServerExperimentalFeatures": { | |
"format": true, | |
"autoComplete": true | |
}, | |
"[go]": { | |
"editor.snippetSuggestions": "none", | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true | |
}, | |
}, | |
"gopls": { | |
"usePlaceholders": true, | |
"enhancedHover": true | |
}, | |
// Go Linter | |
"go.lintTool":"golangci-lint", | |
"go.lintFlags": [ | |
"--fast" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, saved me a lot of googling