Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>YAB for eex/leexNew to Visual Studio Code? Get it now.
YAB for eex/leex

YAB for eex/leex

ouven

|
3,492 installs
| (1) | Free
Yet another beautifer/formatter for leex and eex files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YAB for eex/leex README

"Yet another beautifier" for elixir eex/leex html templates. Like others it utilizes htmlbeautifier. The diffrence 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.

Features

  • Formats eex / leex files without saving or producing tmp files.

Demo GIF

Cheers to

Many parts of this software are copied from other projects. Most of all:

  • https://github.com/golang/vscode-go
  • https://github.com/RoyalMist/vscode-eex-format

Requirements

gem install htmlbeautifier

Extension Settings

Settings

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft