Skip to content

Commit 5becc4d

Browse files
ldezlogica0419
andcommitted
docs: improve
Co-authored-by: logica0419 <[email protected]>
1 parent cca226c commit 5becc4d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/src/docs/welcome/integrations.mdx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ Install the [extension](https://marketplace.visualstudio.com/items?itemName=gola
1717
<details>
1818
<summary style={{color: '#737380'}}>Recommended settings</summary>
1919

20+
- For those who installed golangci-lint manually
21+
2022
```json
21-
"go.lintTool": "golangci-lint-v2",
23+
"go.lintTool": "golangci-lint",
2224
"go.lintFlags": [
2325
"--fast-only"
2426
],
@@ -32,6 +34,25 @@ Install the [extension](https://marketplace.visualstudio.com/items?itemName=gola
3234
]
3335
```
3436

37+
- For those who want to install golangci-lint via extension
38+
- Install `golangci-lint-v2` via the `Go: Install/Update Tools` command after setting these configs
39+
- This will enable golangci-lint v1 to co-exist with v2
40+
41+
```json
42+
"go.lintTool": "golangci-lint-v2",
43+
"go.lintFlags": [
44+
"--fast-only"
45+
],
46+
"go.formatTool": "custom",
47+
"go.alternateTools": {
48+
"customFormatter": "golangci-lint-v2"
49+
},
50+
"go.formatFlags": [
51+
"fmt",
52+
"--stdin"
53+
]
54+
```
55+
3556
Using it in an editor without `--fast-only` can freeze your editor.
3657
Golangci-lint automatically discovers `.golangci.yml` config for edited file: you don't need to configure it in VS Code settings.
3758

0 commit comments

Comments
 (0)