Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Elixir Templates FormatterNew to Visual Studio Code? Get it now.
Elixir Templates Formatter

Elixir Templates Formatter

RoyalMist

|
16,291 installs
| (1) | Free
Format elixir templates files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

EEx Formatter

Fork of EEx Formatter/Beautify with support of new elixir-ls html-eex.

This extension basically using htmlbeautifier to format your file using the Formatter API from the vscode, so no need to create a hack using Task, etc.

Features

Demo GIF

Requirements

gem install htmlbeautifier

NOTE: For you that have a filename with extension .html.eex, your file might be recognized as html file, not as eex file. In that case, add a setting in your settings.json like below:

"files.associations": {
  "*.eex": "eex"
}

Settings

Setting Description Default
vscode-eex-format.tabStops Set number of spaces per indent 2
vscode-eex-format.tab Indent using tabs false
vscode-eex-format.indentBy Indent the output by NUMBER steps 0
vscode-eex-format.stopOnErrors Stop when invalid nesting is encountered in the input false
vscode-eex-format.keepBlankLines Set number of consecutive blank lines 0

References

Base Idea

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