Adding {} indented inside by pressing ctrl + enter


I write a lot of styles (LESS, SCSS), want by pressing ctrl + enter to insert the braces with a line break in and right indent and get the cursor to the position just after a tab


.some-selector| // <- cursor position


.some-selector {
  | // <- cursor position

I was faced with two challenges:

  1. by pressing ctrl + enter the code does not work:
  2. I can not understand how can I get the number and type of padding for the row with a specific number:

any ideas?


If you press { and then enter, you’ll get the same results. What do you need that the default process can’t accomplish?