vscode-sass-indented icon indicating copy to clipboard operation
vscode-sass-indented copied to clipboard

Unindent after second Enter

Open theking2 opened this issue 2 years ago • 5 comments

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

theking2 avatar Jan 30 '23 17:01 theking2

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

TheRealSyler avatar Jan 30 '23 17:01 TheRealSyler

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.

binaryben avatar Aug 03 '23 03:08 binaryben

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.

theking2 avatar Aug 03 '23 05:08 theking2

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 😅

binaryben avatar Aug 03 '23 05:08 binaryben

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?

binaryben avatar Jan 29 '24 07:01 binaryben