File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ Install [plugin](https://plugins.jetbrains.com/plugin/12496-go-linter).
15
15
Install the [ extension] ( https://marketplace.visualstudio.com/items?itemName=golang.Go ) .
16
16
17
17
<details >
18
- <summary style = { {color: ' #737380' }} >Recommended settings</summary >
19
-
20
- For those who installed golangci-lint manually:
18
+ <summary style = { {color: ' #737380' }} >Recommended settings for those who installed golangci-lint manually</summary >
21
19
22
20
``` json
23
21
"go.lintTool" : " golangci-lint" ,
@@ -37,10 +35,14 @@ For those who installed golangci-lint manually:
37
35
Using it in an editor without ` --fast-only ` can freeze your editor.
38
36
Golangci-lint automatically discovers ` .golangci.yml ` config for edited file: you don't need to configure it in VS Code settings.
39
37
40
- For those who want to install golangci-lint via extension:
41
- - install ` golangci-lint-v2 ` via the ` Go: Install/Update Tools ` command after setting these configs.
38
+ </details >
39
+
40
+ <details >
41
+ <summary style = { {color: ' #737380' }} >Recommended settings for installed golangci-lint via extension</summary >
42
+
43
+ 1 . Install ` golangci-lint-v2 ` via the ` Go: Install/Update Tools ` command after setting these configs.
42
44
This will enable golangci-lint v1 to co-exist with v2.
43
- - and use the following settings:
45
+ 2 . use the following settings:
44
46
45
47
``` json
46
48
"go.lintTool" : " golangci-lint-v2" ,
You can’t perform that action at this time.
0 commit comments