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

shell-format-rev

lumirelle

|
12 installs
| (1) | 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

VS Code Shell Script Formatter

Visual Studio Marketplace Version Made with reactive-vscode

Get it on the VS Code Marketplace!

Enjoy shellscript!

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

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 (mvdan/sh)

Sponsors

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