Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>YAMLfmt for Visual Studio CodeNew to Visual Studio Code? Get it now.
YAMLfmt for Visual Studio Code

YAMLfmt for Visual Studio Code

Melt Inc.

|
1,599 installs
| (0) | Free
| Sponsor
YAMLfmt is a compact, efficient, and **comment-preserving** YAML formatter.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YAMLfmt for Visual Studio Code

YAMLfmt is a compact, efficient, and comment-preserving YAML formatter built on top of kubernetes-sigs/yaml and go-yaml — the same core code used by kubectl.

Why that matters

  1. It ensures consistency with manifests generated by many popular tools: kubectl, kustomize, helm, etc.
  2. It eliminates code churn with competing formatters/styles.

But I write YAML for humans, not machines!

Absolutely! That's why YAMLfmt preserves comments, allowing you to communicate and collaborate using meaningful words 😍.

Features

Here's what YAMLfmt offers:

  • Format Document
  • Format Selection

You can also configure VSCode to format on save.

YAMLfmt Demo

Extension Settings

This extension provides the following settings:

  • yaml.compactSequenceStyle — Controls whether arrays are indented an additional level.
  • Tab size configuration is respected by yamlfmt.

Known Issues

Currently, there are no known issues.

Release Notes

1.0.0

Initial release of YAMLfmt.

For more information

  • YAMLfmt
  • YAML

Enjoy! Melt Inc.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft