This extensions uses hindent
to format Haskell source code. It supports the standard Format Document and
Format Selection actions.
The palette command Hindent: Format Document or Selection is provided. If multiple formatters are registered for Haskell documents, this command can be used to invoke this specific formatter.
hindent
can be moderately configured by placing a .hindent.yaml
file in the
workspace directory or the user's home directory. The default configuration is:
indent-size: 2
line-length: 80
force-trailing-newline: true
This extension requires at least
hindent
version 5.2.3 to be
installed.
This extension contributes the following settings:
hindent-format.enable
: enable/disable this extension (default:true
)hindent-format.command
: set the path to thehindent
executable, no arguments should be specified here (default:hindent
)
This extension contributes the following command:
hindent-format.format
: Hindent: Format Document or Selection