Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix editor.codeActionsOnSave values in README examples #492

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
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
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
Loading