Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>shell-formatNew to Visual Studio Code? Get it now.
shell-format

shell-format

foxundermoon

|
2,163,203 installs
| (28) | Free
A formatter for shell scripts, Dockerfile, gitignore, dotenv, /etc/hosts, jvmoptions, and other file types
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Get it on the VS Code Marketplace!

supported file types or languages

language extension describe
shellscript .sh .bash shell script files
dockerfile Dockerfile docker files
ignore .gitignore .dockerignore ignore files
properties .properties java properties files
jvmoptions .vmoptions , jvm.options jvm options file
hosts /etc/hosts hosts file
bats .bats Bats test file

version downloads install ratings
Financial Contributors on Open Collective LICENSE LICENSE star forks

build release
CI RELEASE

Gitter chat


screenshot

usage

shift+option+f

shift+command+p then type Format Document

dependencies

  • shfmt

custom configuration

  • shellformat.path the shfmt fullpath example [mac,linux]: /usr/local/bin/shfmt [windows]: C:\\bin\\shfmt.exe
  • shellformat.flag shfmt -h to see detailed usage.

Links

source code

shfmt

Enjoy shellscript!

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

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