Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Bash BeautifyNew to Visual Studio Code? Get it now.

Bash Beautify

Ahmed Hamdy

|
427,320 installs
| (12) | Free
Format / Beautify bash and shell scripts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bash beautify

A simple extension that just works for shell script formatting based on Paul Lutus - Bash Script Beautifier, The underlying script doesn't do any syntax processing, Hence simple. It's lightweight and just needs python

It'll work with the default format keyboard binding when you edit a .sh file.

  • If you need error checking consider installing also ShellCheck.

  • If you want a more extensive formatter check out shell-format it requires golang and shfmt installed

This is my first vscode extension, Please feel free to report issues, give feedback and request features.

Requirements

  • Make sure to have Python installed and added to $PATH You'll mostly have those requirements met by default if you're running Linux

Features

  • Adjustable tab size by changing the value of the property from settings bashBeautify.tabSize the default value is 4

  • Bash script formatting

Formatting

License

Although the extension is under MIT license, the underlying python script uses GPL license. So the script should stay under GPL and re-distributed accordingly

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft