Question on indentation in JS files

I want WebStorm to refactor JS file like this:

const a = [
{name: 'BackgroundContainer', scaleStrategy: ['cover-screen', 1920, 1920], children: [
{name: 'background', type: 'sprite', image: 'background.jpg', scale: 1.01}
]}
]

 

But it keeps doing that:

const a = [
{
name: 'BackgroundContainer', scaleStrategy: ['cover-screen', 1920, 1920], children: [
{name: 'background', type: 'sprite', image: 'background.jpg', scale: 1.01}
]
}
]

 

I have not found any setting to tune this behavior after many hours of search.

 

0
2 comments

There is currently no way to do this, please vote for https://youtrack.jetbrains.com/issue/WEB-35998 to be notified on any progress with it

1

Thanks for the great answer!

0

Please sign in to leave a comment.