Skip to content

Commit

Permalink
Update VS Code settings (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Dec 4, 2020
1 parent b01f22c commit 131c47e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
{
// gopls
// gopls with gofumpt and import ordering
"go.useLanguageServer": true,
"gopls": {
"gofumpt": true,
},
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
},

// golangci-lint
"go.lintTool": "golangci-lint",
"go.lintFlags": [
Expand Down

0 comments on commit 131c47e

Please sign in to comment.