News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

cb can't auto indent if i don't use brace("{}")?

Started by kissjhy, July 15, 2012, 04:44:26 PM

Previous topic - Next topic

kissjhy

for example

if (a!=b)
a++;

cant auto indent.

if (a!=b)
{
    a++;
}

can auto indent.

I write "if (a!=0)"  then press "enter",it won't auto indent if I don't press a "{".
how could I solve this problem.


Jenna

Not very much information about your version of C::B, so no meaningful answer can be given.

But what I can tell you, it works fine with a recent nightly (8133 on my fedora system).

What are your "Indent options" in "Settings -> Editor -> General settings" ?

kissjhy

Thinks a lot.
I download a nightly(8086) and it works well.
By the way, where can I find the 8133?

Jenna

Quote from: kissjhy on July 16, 2012, 04:47:37 AM
I download a nightly(8086) and it works well.
By the way, where can I find the 8133?
Depends on your system.
For Fedora 15 to 17 and RedHat/CentOS 6 in my repo, for RedHat/CentOS 5 and Debian/Ubuntu it will be in my repo during the day.
All other platform OSes: depends on the repo-maintainer.