YAML prettification explained
YAML prettification parses the document and re-serializes it with normalized indentation. This corrects mixed tabs and spaces, normalizes inconsistent indent depths, and ensures every key-value pair is formatted consistently.
The round-trip parse-and-serialize approach also validates your YAML — if it contains syntax errors, you will see an error message instead of formatted output. This means prettified output is always valid YAML.
Common sources of messy YAML: copy-pasting from terminals (which may convert spaces to tabs), editor auto-indent mismatches, and YAML generated by tools that use different indent sizes. Prettifying standardizes all of these.