Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>YAML Bash HighlightNew to Visual Studio Code? Get it now.
YAML Bash Highlight

YAML Bash Highlight

Woshiwuja

|
1 install
| (0) | Free
Bash syntax highlighting inside YAML block scalar strings
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YAML Bash Highlight

Injects Bash syntax highlighting inside YAML block scalar strings (| and >).

Useful for GitLab CI, GitHub Actions, and any YAML file with embedded shell scripts.

Usage

Works automatically on .yml and .yaml files. Block scalars get Bash highlighting:

script:
  - |
    echo "this is highlighted as bash"
    if [ -z "$VAR" ]; then echo "yes"; fi
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft