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.
Please sign in to leave a comment.
Hello!
there is currently no way to do this. Please vote for http://youtrack.jetbrains.com/issue/WEB-7858
Best regards,
Lena
I didn't see any voting buttons but did add comments - is that considered voting?
No
:( Please use the 'thumbs up' button for voting - see http://intellij-support.jetbrains.com/entries/23368682?challenge=g2xyzcrbnnwir8q for details