theme-tools icon indicating copy to clipboard operation
theme-tools copied to clipboard

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

Open hannahbeasley opened this issue 1 year ago • 0 comments

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.

hannahbeasley avatar Dec 20 '24 18:12 hannahbeasley