docs for #222: add info about VS Code configuration
This commit is contained in:
parent
17508ab904
commit
6aeecb7817
10
README.md
10
README.md
@ -156,6 +156,16 @@ $ golangci-lint run --disable-all -E errcheck
|
|||||||
|
|
||||||
# Editor Integration
|
# Editor Integration
|
||||||
1. [Go for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go).
|
1. [Go for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go).
|
||||||
|
Recommended settings for VS Code are:
|
||||||
|
```json
|
||||||
|
"go.lintTool":"golangci-lint",
|
||||||
|
"go.lintFlags": [
|
||||||
|
"--fast"
|
||||||
|
]
|
||||||
|
```
|
||||||
|
Using it in an editor without `--fast` 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.
|
||||||
|
|
||||||
2. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter.
|
2. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter.
|
||||||
3. GoLand
|
3. GoLand
|
||||||
- Configure [File Watcher](https://www.jetbrains.com/help/go/settings-tools-file-watchers.html) with arguments `run --print-issued-lines=false $FileDir$`.
|
- Configure [File Watcher](https://www.jetbrains.com/help/go/settings-tools-file-watchers.html) with arguments `run --print-issued-lines=false $FileDir$`.
|
||||||
|
@ -129,6 +129,16 @@ $ golangci-lint run --disable-all -E errcheck
|
|||||||
|
|
||||||
# Editor Integration
|
# Editor Integration
|
||||||
1. [Go for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go).
|
1. [Go for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go).
|
||||||
|
Recommended settings for VS Code are:
|
||||||
|
```json
|
||||||
|
"go.lintTool":"golangci-lint",
|
||||||
|
"go.lintFlags": [
|
||||||
|
"--fast"
|
||||||
|
]
|
||||||
|
```
|
||||||
|
Using it in an editor without `--fast` 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.
|
||||||
|
|
||||||
2. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter.
|
2. Sublime Text - [plugin](https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint) for SublimeLinter.
|
||||||
3. GoLand
|
3. GoLand
|
||||||
- Configure [File Watcher](https://www.jetbrains.com/help/go/settings-tools-file-watchers.html) with arguments `run --print-issued-lines=false $FileDir$`.
|
- Configure [File Watcher](https://www.jetbrains.com/help/go/settings-tools-file-watchers.html) with arguments `run --print-issued-lines=false $FileDir$`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user