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!

4 comments
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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

0

Please sign in to leave a comment.