Skip to content

Commit 85d1031

Browse files
committed
Enable StandardJS auto fix on save
Annoyingly the extension for VSCode doesn't hook into the standard formatting API but instead uses it's own key bindings so you cannot set it to format when pressing the format hotkey. Auto fix on save will have to do for now. Discussion on the issue tracker here: standard/vscode-standard#9
1 parent fb69ff1 commit 85d1031

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.vscode/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@
55
"javascript.preferences.quoteStyle": "single",
66
"files.insertFinalNewline": true,
77
"javascript.validate.enable": false,
8-
"editor.defaultFormatter": "standard.vscode-standard",
9-
"[javascript]": {
10-
"editor.defaultFormatter": "vscode.typescript-language-features"
11-
}
8+
"standard.autoFixOnSave": true,
129
}

0 commit comments

Comments
 (0)