Question on indentation in JS files Follow
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.
Please sign in to leave a comment.
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
Thanks for the great answer!