Comments in YAML start with a # and continue to the end of the line. They're ignored when parsing the file, but perfect for explaining your config or disabling certain lines.
📝 Example: Adding Comments
Cleaned config (without comments) will appear here...
💡 Pro Tip: Use comments to explain tricky config options or temporarily disable lines while debugging.
📚 Summary
Comments start with a #
You can put them on their own line or after a key-value pair
Comments are ignored by YAML parsers
Use them liberally to make your YAML readable and safe
🧠 Bonus: YAML Comment Example
Comments like this can prevent accidental server mishaps and clarify weird config choices for your future self.