redhat-developer / redhat-developer/vscode-yaml
Add Config for Array Indentation Spacing
Open
@msivasubramaniaan is already working on this.
Since Oct 27, 2021.
formatter
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
I'm working with Jekyll for GitHub Pages, which uses the Ruby gem for parsing YAML. This gem prefers this spacing in Arrays:
---
simple_val: Testing 1
object_val:
sub_object_val: Testing 2
array_val:
- Testing 3
- Testing 4
However, when auto-formatter is on, this gets converted to:
---
simple_val: Testing 1
object_val:
sub_object_val: Testing 2
array_val:
- Testing 3
- Testing 4
Regardless of preference, it would be great to have an option to disable adding space indention for arrays.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.