Apologies if this has been dealt with before. I did a search and turned up nothing.
The problem I have is that named array initialization in C is broken when I beautify as selection or file.
What I want as a result is this:
const int myArray[10] =
{
[7] = 1,
[1] = 3,
[2] = 5,
[3] = 7,
[4] = 9,
[5] = 11
};
But what the beautifier produces is this:
const int myArray[10] =
{
[7] = 1,
[1] = 3,
[2] = 5,
[3] = 7,
[4] = 9,
[5] = 11
};
I've looked at all the beautifier options but to no avail.
Sometimes the first 2 lines are indented properly, sometimes 3, but never all.
Any ideas? Thanks in advance.