jsonecho

Formateador de Lightning Web Component

Formatea plantillas LWC.

Cargando la herramienta...

Cómo usar Formateador de Lightning Web Component

  1. Pega la plantilla.
  2. Copia el resultado.

Sobre Formateador de Lightning Web Component

Aplica formato consistente a plantillas de Lightning Web Components.

Preguntas frecuentes

Why not use the HTML formatter?

It would treat unquoted bindings as invalid HTML and could add quotes around them. This one parses the template as LWC.

Does it format the JavaScript file?

No, only the template. Use the Babel Formatter for the JS part of the component.

Is it affiliated with Salesforce?

No. LWC is a Salesforce framework, and this tool simply formats its template syntax.

Why did the first run take a second?

The formatting engine for this language is downloaded the first time you use it, then cached by your browser. After that, formatting is instant and nothing leaves your machine.

Más en Formateadores de código

Todas las herramientas →