js code formatter doesn't work very well in phpstorm ps-110.226

if I declare some variables like this:

var x=1,
     y=2,
     z=3;


after applied js code formatter, my code become:

var x=1,y=2,z=3;

which is not expected.

in olde version, I didn't have such problem.

4 comments
Comment actions Permalink

Have you checked the option "Keep when reformatting/Line breaks" in Settings|Code Style|JavaScript|Wrapping and Braces? If it is on, everything works as expected.

0
Comment actions Permalink

yes, it's checked, but it still doesn't work. :(

just to clarify, I use Linux version in Ubuntu 11.10

0
Comment actions Permalink

the new version 110.293 fixed this bug. thanks

0
Comment actions Permalink

Ok, great! Still, if you find anything don't hesitate to submit a bug at http://youtrack.jetbrains.com

0

Please sign in to leave a comment.