- Ensure
shellcheck
is installed. - Run
Install Extension
command from Command Palette. - Search and choose
shellcheck
.
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.useWSL": false
}
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"
}
This extension is based on hoovercj's Haskell Linter.