DEV Community

Discussion on: Introduction to YAML

Collapse
 
paulasantamaria profile image
Paula Santamaría

I found those a bit odd too at first. However, the YAML specification addresses the no tab rule:

Note that most modern editors may be configured so that pressing the tab key results in the insertion of an appropriate number of spaces.

And I found that to be true for VSCode at least.

And about the number of spaces, I just handle that myself and keep it consistent. Haven't had an issue with that, to be honest.