VSCode extension that provides bash syntax highlighting inside GitHub Actions and GitLab CI workflow files.
- Smart CI detection — analyzes YAML structure, not filenames. Works with any path:
.gitlab-ci.yml,ci/deploy.yml,.gitlab/ci/build.yaml, etc. - Bash highlighting in
run:,script:,before_script:,after_script:blocks - Multiline support — handles
|and>YAML block scalars - GitHub expressions — recognizes
${{ }}syntax
| Element | Examples |
|---|---|
| Commands | echo, cd, mkdir, npm, docker |
| Keywords | if, then, else, fi, for, while, case |
| Variables | $VAR, ${VAR:-default}, $1, $@ |
| Strings | "double quoted", 'single quoted' |
| Operators | &&, ||, >, >>, |, ; |
| Comments | # comment |
| GitHub expressions | ${{ github.sha }}, ${{ secrets.TOKEN }} |
GitHub Actions
.github/workflows/*.yml- Any YAML containing
jobs,runs-on,stepsstructure
GitLab CI
.gitlab-ci.yml- Any YAML containing
stages,script,imagestructure - Works with
include:files at any path
Search for "Bash Highlighter for CI/CD" in VSCode Extensions.
npm install
npm run build
npm run package
code --install-extension bashlighter-0.1.0.vsixgit clone https://github.com/nsvk13/bashlighter
cd bashlighter
npm install
npm run build:dev
# Press F5 in VSCode to launch Extension Development HostMIT