Heex formatter - a Formatter for Heex templates

Another technique I used is
Install the extension emeraldwalk.runonsave
In VS Code’s settings.json, add an entry like this:

"emeraldwalk.runonsave": {
    "commands": [
      {
        "match": "\\.heex|ex?$",
        "isAsync": true,
        "cmd": "cd ${workspaceRoot} && mix format ${file}"
      }
    ]
},
4 Likes