Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hannahbeasley opened this issue Dec 20, 2024 · 0 comments

Comments

@hannahbeasley
Copy link

hannahbeasley commented Dec 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant