JavaScript objects code formatting configuration

Hi!

Is there any way to configure PhpStorm/WebStorm to format code of JavaScript objects not like this:
22.jpg


But like this:


11.jpg

I did not found configuration option for this in PhpStorm settings or in Google :(
Thanks!

0

Hi Sergey,

File | Settings | Code Style |  Wrapping & Braces -->  Method Call Arguments  --> untick "Align when multiline" (make sure that JavaScript tab is active, not PHP)

0
Avatar
Permanently deleted user

Andriy, thank you very much!
PhpStorm is really the Best! :)

0

While we're at it, any hints to reformat this :

origin.png

To this :
final.png

Arrays with objects like this :
[{
     blabla,
     blabla
}, {
     blabla
}]

Any help would be appreciated, thanks !

0

There are no specific options to do this, please feel free to file a feature request  in YouTrack
.

0

请先登录再写评论。