Warning This extension is deprecated in favour of the heex formatter, that is shipped with live view
"Yet another beautifier" for elixir eex/leex html templates. Like others it utilizes htmlbeautifier. The difference is, it can format without saving the file first.
htmlbeautifier
needs language settings to be set in the environment to handle utf-8 charsets - like umlauts.
On Macs the LC_* environment variables are not set by default. This extension will set them to en_US.UTF-8
if not set.
- Formats eex / leex files without saving or producing tmp files.
Many parts of this software are copied from other projects. Most of all:
gem install htmlbeautifier
Setting | Description | Default |
---|---|---|
vscode-yab-for-eex-leex.tabStops |
Set number of spaces per indent | 2 |
vscode-yab-for-eex-leex.tab |
Indent using tabs | false |
vscode-yab-for-eex-leex.indentBy |
Indent the output by NUMBER steps | 0 |
vscode-yab-for-eex-leex.stopOnErrors |
Stop when invalid nesting is encountered in the input | false |
vscode-yab-for-eex-leex.keepBlankLines |
Set number of consecutive blank lines | 0 |