vscode-yaml
vscode-yaml copied to clipboard
Formating removes vertical alignment of values
Describe the bug
When formatting the whitespace used for vertical alignment of values is removed, even though the YAML specs allow and encourage it.
Currently there is no way to work around this issue except by disabling the formatter. Installing the Prettier extension keeps the alignment but does not enforce it (by default).
Expected Behavior
When formatting, values vertical alignment to be kept or added
tree:
fruit: "pear"
name: "peartree"
location: "garden"
Current Behavior
Regardless of how they are vertically aligned, they the whitespace is stripped.
tree:
fruit: "pear"
name: "peartree"
location: "garden"
Steps to Reproduce
- Write any YAML file and align the values vertically using spaces
- Format the file using this plugin's formatter
- Alignment is broken
Environment
- [x] Linux
Moving from atom to vscode. Really needed this especially for ansible playbook
Any update ?
+1 on this. For yaml configuration files vertical alignment really makes a big difference in readability.
Still no updates till this day
It would be nice to be able to align the values as Intellij Idea do.