Skip to content

Commit

Permalink
docs: fix editor.codeActionsOnSave values in README examples (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Jan 29, 2024
1 parent 39e7c76 commit 66376c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,28 +226,28 @@ An array of language identifiers specifying which files to enable snippets for.

### `editor.codeActionsOnSave`

This extension provides an action that you can use with VS Code's [`editor.codeActionsOnSave`][vscode settings] setting. If provided a `source.fixAll.stylelint` property set to `true`, all auto-fixable Stylelint errors will be fixed on save.
This extension provides an action that you can use with VS Code's [`editor.codeActionsOnSave`][vscode settings] setting. If provided a `source.fixAll.stylelint` property set to `explicit`, all auto-fixable Stylelint errors will be fixed on save.

```json
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
"source.fixAll.stylelint": "explicit"
}
```

The following turns on auto fix for all providers, not just Stylelint:

```json
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
}
```

You can also selectively disable Stylelint:

```json
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.stylelint": false
"source.fixAll": "explicit",
"source.fixAll.stylelint": "never"
}
```

Expand All @@ -256,7 +256,7 @@ You can also selectively enable and disable specific languages using VS Code's l
```json
"[html]": {
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": false
"source.fixAll.stylelint": "never"
}
}
```
Expand Down

0 comments on commit 66376c5

Please sign in to comment.