redhat-developer / redhat-developer/vscode-yaml
Auto indent when press ENTER after colon
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
I'm trying figure out how to make vscode indent after I press ENTER after colon, like this
name:
echo: "It should place cursor under letter 'm' automatically"
It should have indented and placed the cursor under the letter 'm' (2 spaces) when I pressed the enter key after "name:"
But I can't seem to get it to work. It just puts the cursor underneath the letter 'n'.
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.
Research direction
No source file or test is named. First reproduce the behavior in VS Code using the YAML example, then trace the extension's indentation handling and compare the result with the requested two-space indentation. Done means pressing Enter after name: places the cursor at the next YAML nesting level, with a regression test covering the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100