Page 1 of 1

AutoIndent Behaviour

Posted: Thu Mar 19, 2009 4:33 pm
by tjulian
AutoIndent behaviour when 'Enter' is pressed in column 0 doesn't work right, in my opinion.

For example, in this sample:

Code: Select all

{
    if (x) {
        statement1;
        statement2;
        statement3;
    }
}
If 'Enter' is pressed in column 0 of statement2, CL autoindents to this:

Code: Select all

{
    if (x) {
        statement1;

statement2;
        statement3;
    }
}
Is this expected behaviour?
--tim

Re: AutoIndent Behaviour

Posted: Sun Mar 29, 2009 7:33 pm
by OLiverr
In addition, tt would be also nice when there would be an indentation after ifs and fors without braces, e.g. :

Code: Select all

it(x == 10)
dothisandthat; // <--- no indentation here

while(true)
dothisandthat;