vscode-shellcheck
Requirements
- Ensure
shellcheck
is installed (v0.4.7
or better is recommended to use). - Run
Install Extension
command from Command Palette. - Search and choose
shellcheck
.
Options
There are various options that can be configured by making changes to your user or workspace preferences.
Default options are:
{
"shellcheck.enable": true,
"shellcheck.run": "onType",
"shellcheck.executablePath": "shellcheck",
"shellcheck.exclude": [],
"shellcheck.customArgs": [],
"shellcheck.ignorePatterns": {},
"shellcheck.useWSL": false
}
Lint onType or onSave
By default the linter will lint as you type. Alternatively, set shellcheck.run
to onSave
if you want to lint only when the file is saved (works best if auto-save is on).
{
"shellcheck.run": "onType" // also: "onSave"
}
Acknowledgements
This extension is based on hoovercj's Haskell Linter.