ตัวจัดรูปแบบและโค้ด
ตัวจัดรูปแบบ YAML
ตัวจัดรูปแบบ YAML ฟรี ปรับการเยื้องให้เป็นมาตรฐาน แก้ไขการอ้างอิงที่ไม่ชัดเจน และจัดแนวกุญแจใน Kubernetes manifests, CI configs และ YAML อื่นๆ ทั้งหมด ทำงานด้วย Prettier ในเบราว์เซอร์
หมายเหตุจากบรรณาธิการ
Understanding · YAML's two minds.
บทเชิงลึกนี้มีให้บริการเฉพาะภาษาอังกฤษในขณะนี้ เครื่องมือแปลงด้านบนทำงานในภาษาของคุณ บทความอธิบายแบบยาวยังไม่ได้แปล
คำถามที่พบบ่อย
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.
ผู้คนยังค้นหา
เครื่องมือที่เกี่ยวข้อง
More in this room.
- JSON Formatter & Validatorจัดรูปแบบ, ย่อขนาดและตรวจสอบ JSON — ฟรี, ไม่ต้องลงทะเบียน
- SQL Formatterจัดรูปแบบและจัดย่อหน้าคำสั่ง SQL ที่ไม่สวยงาม
- XML Formatter & Validatorจัดรูปแบบ, ย่อขนาดและตรวจสอบ XML — ทันที
- HTML Formatterจัดรูปแบบและย่อขนาด HTML — ค่าเริ่มต้นของ Prettier
- CSS Formatterจัดรูปแบบและย่อขนาดสไตล์ชีท CSS
- JavaScript / TypeScript FormatterJS & TS ที่จัดรูปแบบด้วย Prettier ในเบราว์เซอร์