It seems that Aptana Studio 3 only has the option for auto-formatting Javascript arrays into one line. I was wondering if there is a way to make Aptana Studio 3 auto-format Javascript arrays into a new line for each array element (similar to the option for auto-formatting php arrays – “Insert new line between array creation elements”).
For example, I want
var dataset = [1, 2, 3, 4];
to become
var dataset = [1,
2,
3,
4];
What I usually do in Aptana is this:
And Aptana is dumb enough to be smart about not trying to interpolate with line comments.
Then you can even have: