JavaScript objects code formatting configuration
Hi!
Is there any way to configure PhpStorm/WebStorm to format code of JavaScript objects not like this:
But like this:
I did not found configuration option for this in PhpStorm settings or in Google :(
Thanks!
Please sign in to leave a comment.
Hi Sergey,
File | Settings | Code Style | Wrapping & Braces --> Method Call Arguments --> untick "Align when multiline" (make sure that JavaScript tab is active, not PHP)
Andriy, thank you very much!
PhpStorm is really the Best! :)
While we're at it, any hints to reformat this :


To this :
Arrays with objects like this :
[{
blabla,
blabla
}, {
blabla
}]
Any help would be appreciated, thanks !
There are no specific options to do this, please feel free to file a feature request in YouTrack
.