Opening new curly braces in schema should place cursor in new, middle line, ready for content
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 234
- Forks
- 92
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
Is your feature request related to a problem? Please describe.
When writing the schema for a section and adding a new opening curly brace, I’m noticing that autocomplete will correctly add the closing curly brace, but my cursor lands right before that closing brace, and the closing brace is on a new line directly below the opening brace. That makes it necessary for me to move the cursor to after the opening brace, add a new line, and indent. That gets really cumbersome and annoying to deal with every time I open new braces.
Describe the solution you'd like
It would be way more convenient and a time saver for autocomplete to add a new line in between both braces, with the cursor indented according to my indent settings (which for me is a tab). I figure this could be default behavior, with an option to disable.
Describe alternatives you've considered
The only alternative I've considered is using keybindings - but that's not the most ideal alternative as it still requires additional interaction from me as opposed to autocomplete placing the cursor directly where it needs to be.
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
Start by locating the TypeScript autocomplete or language-server handling for opening curly braces in the repository. Reproduce the current cursor placement, then verify that the generated braces contain an indented middle line with the cursor ready for content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100