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: 
### 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.
The right way to do this is to setup ESLint (or prettier) rules, and VSCode will
do this for you automatically on save.