Formattatori e Codice
Formattatore YAML
Formattatore YAML gratuito. Normalizza l'indentazione, risolve le quotazioni ambigue e allinea le chiavi tra i manifest di Kubernetes, le configurazioni CI e qualsiasi altra cosa YAML. Basato su Prettier, nel browser.
Nota dell'editore
Understanding · YAML's two minds.
Questo capitolo approfondito è attualmente disponibile solo in inglese. Lo strumento di conversione qui sopra funziona nella tua lingua; il lungo articolo esplicativo non è stato ancora tradotto.
Domande frequenti
Quick answers.
›Does it handle anchors and aliases?
Yes — Prettier's YAML parser understands *anchors, &aliases, block scalars, flow-style sequences and maps, all of it. The output round-trips cleanly.
›Will it change my values?
Only whitespace and quoting. If a value was ambiguous (like unquoted `yes` being coerced to boolean), it stays as-written — Prettier won't silently re-parse scalars.
›Is this a linter?
No — it's a formatter. For lint rules (required keys, schema validation) use yamllint or a Kubernetes-specific linter.
›Safe for Kubernetes manifests?
Yes — tested on Deployments, Services, ConfigMaps, Helm templates. Multi-document files (--- separators) round-trip cleanly.
Le persone cercano anche
Strumenti correlati
More in this room.
- Formattatore e Validatore JSONRendi più bello, minimizza e convalida JSON — gratuito, senza registrazione.
- Formattatore SQLRendi più belle e indentate le query SQL brutte.
- Formattatore e Validatore XMLRendi più bello, minimizza e convalida XML — istantaneamente.
- Formattatore HTMLRendi più bello e minimizza HTML — Impostazioni predefinite Prettier.
- Formattatore CSSRendi più belli e minimizza i fogli di stile CSS.
- Formattatore JavaScript / TypeScriptJS e TS formattati con Prettier, nel browser.