Set of extensions to convert VSCode to IDE for shell scripting (sh, bash)
For the extensions to work correctly, you need to install binary dependencies into your operating system.
Install hadolint:
- Download the latest binary release and install it on your system, or use the official installation guide.
Install bashdb:
Download bashdb source files and install it:
BASDB_VERSION=5.0-1.1.2
curl -Lo "bashdb-$BASDB_VERSION.tar.gz" \
"https://sourceforge.net/projects/bashdb/files/bashdb/$BASDB_VERSION/bashdb-$BASDB_VERSION.tar.gz/download"
tar xf "bashdb-$BASDB_VERSION.tar.gz"
cd "bashdb-$BASDB_VERSION/"
./configure
make
sudo make install
Optionally you can also install binaries for shellcheck and shfmt. But in most cases this is not necessary, they are installed automatically when the extension is installed.
{
"files.autoSave": "off",
"[shellscript]": {
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"editor.renderWhitespace": "boundary",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.tabCompletion": "on",
"editor.snippetSuggestions": "top",
"editor.wordWrap": "off",
"editor.formatOnPaste": true,
"editor.rulers": [
{
"column": 72,
"color": "#1e751633",
},
{
"column": 80,
"color": "#c2790b99",
},
{
"column": 132,
"color": "#a10d2d99"
}
],
"editor.minimap.maxColumn": 132,
},
// Other settings
}
- Подготовка эффективной среды для написания bash сценариев - an article in Russian about preparing an effective environment for developing bash scripts