.vscode: enable shellcheck auto-fix on save

This commit is contained in:
XuehaiPan 2021-11-07 19:53:14 +08:00
parent 0331cbeda3
commit fcbf626e4c

View File

@ -17,5 +17,11 @@
"shellscript" "shellscript"
], ],
"shellformat.path": "${workspaceFolder}/Library/Homebrew/utils/shfmt.sh", "shellformat.path": "${workspaceFolder}/Library/Homebrew/utils/shfmt.sh",
"shellformat.flag": "-i 2 -ci -ln bash" "shellformat.flag": "-i 2 -ci -ln bash",
"[shellscript]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.shellcheck": true,
}
}
} }