I use AStyle for stylizing my code. I suppose many here use it too. But I have a problem with array initialization, like PSTs. It always show wrong:
Code: Select all
static const int EV_B_SITUACION_CABALLO_NEGRO[64] = {
-30, -24, -14, -10, -10, -14, -24, -30,
-20, -10, 0, 6, 6, 0, -10, -20,
-3, 5, 16, 22, 22, 16, 5, -3,
-4, 4, 14, 20, 20, 14, 4, -4,
-10, 0, 10, 14, 14, 10, 0, -10,
-14, -10, 0, 4, 4, 0, -10, -14,
-17, -12, -7, -5, -5, -7, -12, -17,
-25, -20, -15, -12, -12, -15, -20, -25
};
Code: Select all
static const int EV_B_SITUACION_CABALLO_NEGRO[64] = {
-30, -24, -14, -10, -10, -14, -24, -30,
-20, -10, 0, 6, 6, 0, -10, -20,
-3, 5, 16, 22, 22, 16, 5, -3,
-4, 4, 14, 20, 20, 14, 4, -4,
-10, 0, 10, 14, 14, 10, 0, -10,
-14, -10, 0, 4, 4, 0, -10, -14,
-17, -12, -7, -5, -5, -7, -12, -17,
-25, -20, -15, -12, -12, -15, -20, -25
};
How do you stylize code to avoid this things? do you have any other stylizing tips?