Skip to content

Opening new curly braces in schema should place cursor in new, middle line, ready for content #680

Open
@hannahbeasley

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions