I have some code similar to the following except that it has many more lines:
struct pair pairs[] =
{
{ "value 1", 1 },
{ "value 100", 100 },
{ "value 25", 25 },
{ "value 3000", 3000 }
};
Is there a way to indent the second values in the initialiser so that they are all aligned as follows:
struct pair pairs[] =
{
{ "value 1", 1 },
{ "value 100", 100 },
{ "value 25", 25 },
{ "value 3000", 3000 }
};
I seem to recall using an editor in the past that had a "tab-relative" command that would indent the current position on a line to match the next non-space character on the previous line which would work nicely for this.
Any help would be appreciated.