From 8f0e3431873cda95381617b93adb5732e59266c7 Mon Sep 17 00:00:00 2001 From: srinandan <13950006+srinandan@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:45:37 -0800 Subject: [PATCH] improve vscode settings --- .vscode/settings.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 136cd14b4..9680592a9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,11 +14,18 @@ }, "go.useLanguageServer": true, "go.lintTool": "golangci-lint", - "go.lintOnSave": "workspace", - "go.vetOnSave": "workspace", + "go.lintFlags": [ + "--fast", + ], + "go.lintOnSave": "file", + "go.formatTool": "goimports", + "go.vetOnSave": "package", "[go]": { "editor.insertSpaces": true, "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": true + }, "editor.defaultFormatter": "golang.go" }, // YAML Config