redhat-developer / redhat-developer/vscode-yaml

Pressing Enter In A List Element Should Start Newline With '-'

Open
#157 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

If I am entering in a list element in a YAML document and press enter, it would be nice if this extension begins the new line with a - character. This allows me to easily enter in another element into the list, rather than having to type - and SPACE every time (imagine me typing a long list and how tedious this can get).

I think this makes a lot of natural sense to me and I have seen other YAML editors autocomplete the start of list elements this way (I have most definitely observed JetBrains IDEs act this way). The worst case scenario is that if I don't want to continue entering in list elements on the newline, I just have to press backspace a couple extra times. I would have had to press backspace anyway if my next line were something like a node at a higher level in the YAML document.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the VS Code YAML extension's handling of Enter inside YAML list elements and any existing editor behavior tests; done means pressing Enter after a list item inserts the expected '-' prefix without disrupting higher-level YAML editing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.