Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Better Shell SyntaxNew to Visual Studio Code? Get it now.
Better Shell Syntax

Better Shell Syntax

Jeff Hykin

|
150,965 installs
| (5) | Free
This enables your theme to better color your code. There are "textmate scopes" that your theme uses to apply color, this extension adds/improves the textmate scopes which should improve the way your code looks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Like this extension?

You'll probably like this as well: The Better Syntax Megapack

What does this do?

This will get you the bleeding-edge syntax highlighting for bash/zsh. Which means your theme will be able to color your code better.

NOTE: The default VS Code theme does not color much. Switch to the Dark+ theme (installed by default) or use a theme like one of the following to benefit from the changes:

  • XD Theme
  • Noctis
  • Kary Pro Colors
  • Material Theme
  • One Monokai Theme
  • Winteriscoming
  • Popping and Locking
  • Syntax Highlight Theme
  • Default Theme Enhanced

How do I use it?

Just install the VS Code extension and the changes will automatically be applied to all relevent files.

Before After
old_code new_code

The screenshots were taken with PolaCode 2022 with the XD Theme (MixItUp variant) and the XD font

Contributing

If you'd like to help improve the syntax, main.rb is where all the magic happens and CONTRIBUTING.md explains how the code works.

What if I see a highlighting bug?

Post an issue on https://github.com/jeff-hykin/better-shell-syntax

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft