From fcbf626e4cda022962b08a67fea5819ba9178487 Mon Sep 17 00:00:00 2001 From: XuehaiPan Date: Sun, 7 Nov 2021 19:53:14 +0800 Subject: [PATCH] .vscode: enable shellcheck auto-fix on save --- .vscode/settings.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 0fdf786471..865fc53af2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,5 +17,11 @@ "shellscript" ], "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, + } + } }