Question: That's quite often for me that I need to change my single-line JS object to a multi-line one. Such as:

```
var obj = { prop1: 'abc', prop2: 123, prop3: 'something else' }

 |          |
 v          v

var obj = {
  prop1: 'abc',
  prop2: 123,
  prop3: 'something else'
}

```

Is there some shortcut for doing such a thing in VSCode? Or is there some way to create such a shortcut?

Answer: 
You could use the "split line" plugin.
See here:
<https://marketplace.visualstudio.com/items?itemName=chenzhe.split-line>

[![enter image description here](https://i.stack.imgur.com/0P6pw.gif)](https://i.stack.imgur.com/0P6pw.gif)
### Prettier - Code formatter

Will solve your needs (easily in visual studio code)

`esbenp.prettier-vscode`

<https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode>

You can make it format on save, which is very nice.