Constant arrays are not correctly formatted
2 posts
• Page 1 of 1
Constant arrays are not correctly formatted
When constant arrays are used, the autoformatter will constantly try to remove indentation in the array.
For example, the following constant array:
Will keep turning into this:
Which is rather annoying. Please fix it when you get a chance.
Regards,
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,
- DanTalash
- Posts: 23
- Joined: November 25th, 2015, 6:19 pm
Re: Constant arrays are not correctly formatted
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!
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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 120 guests