redhat-developer / redhat-developer/vscode-yaml
array of objects completion: line return indentation should be always at array item level
Open
@evidolob is already working on this.
Since Feb 24, 2021.
enhancement
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Is your enhancement related to a problem? Please describe.
Currently, when I have an array of objects, if I type RETURN on first item of my array, new line indentation is at parent level (not at array item level).
For example, if I type:
- prop1: value1
And then ENTER, I get this:
- prop1: value1
#INDENTATION AT ROOT
Although if I have this:
- prop1: value1
prop2: value2
And then ENTER, I get this:
- prop1: value1
prop2: value2
#INDENTATION AT ARRAY ITEM LEVEL
Describe the solution you would like
I would like that always, when array is an "array of objects", RETURN generates a new line with "array item indentation"
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.