Page 1 of 1

Constant arrays are not correctly formatted

PostPosted: September 21st, 2017, 3:53 pm
by DanTalash
When constant arrays are used, the autoformatter will constantly try to remove indentation in the array.

For example, the following constant array:

Code: Select all
const CONSTANT_ARRAY = [
    1 => 1,
    2 => 2,
    3 => 3,
];



Will keep turning into this:

Code: Select all
const CONSTANT_ARRAY = [
1 => 1,
2 => 2,
3 => 3,
];


Which is rather annoying. Please fix it when you get a chance.

Regards,

Re: Constant arrays are not correctly formatted

PostPosted: September 25th, 2017, 1:26 pm
by Miloslav Beno
Hello Dan,

Thanks for letting us know, that's a bug. We will fix this one ASAP and release it in the next update. Construct like this should not be touched by the formatter and should be left as user wants them.

Thanks again!