mjmlio / vscode-mjml

MJML preview, lint, compile for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml
MIT License
178 stars 24 forks source link

beautify on save? #7

Closed muuvmuuv closed 3 years ago

muuvmuuv commented 4 years ago

Is it possible to beautify on-save?

alex-way commented 3 years ago

Add the following to settings.json:

"[mjml]": {
    "editor.defaultFormatter": "mjmlio.vscode-mjml"
  }
PaulContremoulin commented 3 years ago

For Attila Buti version :


{
    "editor.formatOnSave": true,
    "[mjml]": {
        "editor.defaultFormatter": "attilabuti.vscode-mjml"
    }
}