Skip to content

Commit f46f4ca

Browse files
committed
chore: document source.fixAll.xo
1 parent d056f19 commit f46f4ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ In either your workspace or user settings add the following settings. Linter xo
5252

5353
### Code Actions on Save
5454

55-
As of v3.18, vscode-linter-xo will respect the 'source.fixAll' code action request and auto format code on save. If you choose to auto format by this method, it is best to turn "editor.formatOnSave" off.
55+
As of v3.18, vscode-linter-xo will respect the 'source.fixAll' code action request and auto format code on save. If you choose to auto format by this method, it is best to turn "editor.formatOnSave" off. You can also use 'source.fixAll.xo' code action on save to avoid running other formatters which support code actions on save.
5656

5757
```json
5858
{
5959
"editor.formatOnSave": false,
6060
"xo.format.enable": true,
6161
"editor.codeActionsOnSave": {
62-
"source.fixAll": true
62+
"source.fixAll": "explicit", // or you can use the xo specific code action on save
63+
"source.fixAll.xo": "explicit
6364
}
6465
}
6566
```

0 commit comments

Comments
 (0)