Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: improve
Co-authored-by: logica0419 <[email protected]>
  • Loading branch information
ldez and logica0419 committed Apr 9, 2025
commit 5becc4d763a0ae91a7e383c762dafcd5f918589a
23 changes: 22 additions & 1 deletion docs/src/docs/welcome/integrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ Install the [extension](https://marketplace.visualstudio.com/items?itemName=gola
<details>
<summary style={{color: '#737380'}}>Recommended settings</summary>

- For those who installed golangci-lint manually

```json
"go.lintTool": "golangci-lint-v2",
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast-only"
],
Expand All @@ -32,6 +34,25 @@ Install the [extension](https://marketplace.visualstudio.com/items?itemName=gola
]
```

- For those who want to install golangci-lint via extension
- Install `golangci-lint-v2` via the `Go: Install/Update Tools` command after setting these configs
- This will enable golangci-lint v1 to co-exist with v2

```json
"go.lintTool": "golangci-lint-v2",
"go.lintFlags": [
"--fast-only"
],
"go.formatTool": "custom",
"go.alternateTools": {
"customFormatter": "golangci-lint-v2"
},
"go.formatFlags": [
"fmt",
"--stdin"
]
```

Using it in an editor without `--fast-only` can freeze your editor.
Golangci-lint automatically discovers `.golangci.yml` config for edited file: you don't need to configure it in VS Code settings.

Expand Down
Loading