JavaScript array of objects code formatting

I'm trying to get the JavaScript formatter to format array of objects like this:

        return [{             xtype: 'wpprocessmodeler',             region: 'center'         }, {             xtype: 'wppropertymainpanel',             title: 'Process',             region: 'east',             collapsible: true,             collapseMode: 'mini',             split: true,             width: 300         }];


When I run the formatter I get this

        return [             {                 xtype: 'wpprocessmodeler',                 region: 'center'             },             {                 xtype: 'wppropertymainpanel',                 title: 'Process',                 region: 'east',                 collapsible: true,                 collapseMode: 'mini',                 split: true,                 width: 300             }         ];



Is it possible to get my JavaScript to format like the first example? I've been playing with the setting with no luck.

3 comments
Comment actions Permalink

Hello!


there is currently no way to do this. Please vote for http://youtrack.jetbrains.com/issue/WEB-7858


Best regards,
Lena

0
Comment actions Permalink

I didn't see any voting buttons but did add comments - is that considered voting?

0

Please sign in to leave a comment.