I'm still not getting a good result. Have to manually press ENTER twice between the {} curly brackets and then bring the cursor up and hit TAB.
I can't reproduce this issue. Do you check the options Jens' said?
Play with the settings in "Settings -> Editor -> General settings -> Editor settings -> Indent options".
I have checked all of them, except the last one ("Select brace completion").
In my C::B.
I first enter this.
Then I hit enter, I get my caret to the second line.
Then, I enter a '{', and the code becomes:
int main()
{
//* note that the caret was automatically placed here
}
So, I don't need to press Enter again. ;)
I have used CB 10.5 until upgrading to the latest 13.12 version and my indents in Whitesmith mode are broken too.
This is how the sample is supposed to look like:
int Foo(bool isBar)
{
if (isBar)
{
bar();
return 1;
}
else
{
return 0;
}
}
In the old CB, as soon as I typed Enter after if (isBar) the open brace was inserted at indent +2, the closing brace would be appear aligned 2 lines below it, with empty line & cursor ready right below the open brace (at same column) for the block in between.
In the new version, typing the same way, the code ends up looking like this, as if forcing some other source formatting style (with braces not aligned with the block between them), not Whitesmith:
int Foo(bool isBar)
{
if (isBar)
{
bar();
return 1;
}
else
{
return 0;
}
}
In the general settings for indentation I have checked on: Autoindent, Smart Indent, Brace Completion, Backspace unindents, Brace Smart Indent, Selection brace completion.