TheRealSyler / vscode-sass-indented

Sass indented syntax support for VSCode
https://marketplace.visualstudio.com/items?itemName=Syler.sass-indented
Other
43 stars 9 forks source link

Unindent after second Enter #119

Open theking2 opened 1 year ago

theking2 commented 1 year ago

Is your feature request related to a problem? Please describe. Sass-indented does indent properly but in order to start a new definition the indent must be removed. It would be great if the indentation level goes down after a second enter key.

Describe the solution you'd like

  1. Start a new rule by typing a descriptor
  2. Add definitions, followed by enter
  3. After a second enter-key create a new line and reduce indentation one level
  4. After a third enter-key do the same

Describe alternatives you've considered Find the backspace key

Additional context

Recording #15

TheRealSyler commented 1 year ago

thanks for creating this issue, i probably won't implement it, but feel free to make a pr.

binaryben commented 11 months ago

If you do implement it @theking2, please make it optional and off by default. I'm more likely to be adding another indentation or working on a sibling element than I am going up.

theking2 commented 11 months ago

But not after a second enter? I inderstand this is matter of style preference but for me a sub element is never preceded by an empty line.

binaryben commented 11 months ago

Quick grab of what I'm working on right now:

Screenshot 2023-08-03 at 1 30 46 pm

Yup, definitely a style choice. I like whitespace.

I'm also in the habit of using cmd + [/] to quickly change indent level anyway, so anything that makes that harder is just annoying 😅

theking2 commented 10 months ago

I'm inspired what many text editors, Microsoft Word among them do when having and indent and type the enter key multiple times: Unindent

binaryben commented 5 months ago

Yeh okay, I do appreciate that feature when writing bulleted lists. Maybe if a config option can be set in settings.json file to allow for new lines between blocks?