VSCode splits comma separated values ​​into strings

Is there a way to split this format:

const { a, b, c, d, e, g, f, g, etc } = alphabet

AT

const { 
  a, 
  b, 
  c, 
  d, 
  e, 
  g, 
  f, 
  g, 
  etc } = alphabet

Easy?

UPDATE

After an endless search for several days, I decided to spend the weekend creating an extension to achieve this. See my answer below.

+4
source share
2 answers

I have been looking for support for several days but cannot find. So I decided to create an extension called Break From Comma!

Hope this helps! Contributions are very welcome!

Features

  • Supports both single and double quotes
  • Auto indentation!

Limitation

  • .

Demo

+1

.

  • ,
  • editor.action.addSelectionToNextFindMatch ( CTRL + d),
  • . , .
  • ENTER
  • , .

:

enter image description here

+5

Source: https://habr.com/ru/post/1669438/


All Articles