views:

64

answers:

0

After moving from Carbide.c++ 2.0.2 to Carbide.c++ 2.4.0 (it is 2.3.0 + update) and moving my Code Style profile, "Code style" preferences are not applied while typing in one particular case, and it is related to indent position after conditionals.

My code style profile says the conditional should look like this:

if (x > 3)
    {
    y = 3; //correct
    }

but code editor does this while typing:

if (x > 3)
    {
y = 3; //four spaces left
    }

However, if I select the code, and request formatting (CTRL+SHIFT+F), it will correct it.

Has anybody experienced this? Any workaround? I know I can disable "automatically indent" in Editor preferences, and in that case it works fine, but then I am missing some features I am used to it.

Thank you for your answers.