format-shell
Format your shell scripts automatically in the Atom text editor
Peter Lyons 25,429 15 2.2.1 MIT GitHub

Atom Format Shell

Automatically format/beautify/pretty-print your shell script source code from within the Atom text editor.

The formatting is powered under the hood by shfmt, which must be installed separately from atom and this atom package.

You can install shfmt by several package managers as documented here.

How to use

There are two ways to format your code:

  • Automatically format on save (requires enabling in Packages → Format Shell → Toggle Format on Save)
  • Run the command Format Shell: Format to invoke shfmt manually