Strings

Strings can be written in many ways in yaml, each with their specific advantages and disadvantages.

typeWhen to use?
Unquoted stringsShort text without hashtags (with a space in front) or colons (with a space behind).
Single quoted stringsShort text where unquoted strings can't be used.
Double quoted stringsAlmost never. When you need to be able to write escaped sequences like \n.
Folded stringsWhen you have a longer piece of text that you would like to write on multiple lines.
Literal stringsWhen you absolutely need to have newlines in the resulting string.