Skip to content

Commit a7e91a5

Browse files
authored
Enable gofumpt in vscode (#2001)
## Tests Verified that with this setting, VSCode reformats code on Save according to gofumpt rules.
1 parent 7249b82 commit a7e91a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"go.lintFlags": [
88
"--fast"
99
],
10+
"go.useLanguageServer": true,
11+
"gopls": {
12+
"formatting.gofumpt": true
13+
},
1014
"files.trimTrailingWhitespace": true,
1115
"files.insertFinalNewline": true,
1216
"files.trimFinalNewlines": true,

0 commit comments

Comments
 (0)