User forums > Using Code::Blocks
Indentation in cb
Jenna:
If you build from sources, you need to run configure with the --with-contrib-plugins=xxx parameter, where xxx is either all for all contrib-plugins or any comma-seperated list of contrib-plugins.
Call configure with --help to see the exact spelling.
erezz:
--- Quote from: jens on October 29, 2013, 09:55:04 am ---If you build from sources, you need to run configure with the --with-contrib-plugins=xxx parameter, where xxx is either all for all contrib-plugins or any comma-seperated list of contrib-plugins.
Call configure with --help to see the exact spelling.
--- End quote ---
Thanks. I was able to use the SmartIndentCPP plugin. This solved the problem that I described in foo1() but didn't solve the problem in foo().
And here's another problem:
--- Code: ---void foo2(int a, int b)
{
printf("abcd %d %d",
a,
b);
}
--- End code ---
If I put the cursor in line 5 just after the ";" char and click "Enter", I would expect that the cursor will jump to the next line, 1 tab after the beginning of the line. Instead, it is located below the "b" char (i.e. still indented for the printf() function). This seems wrong to me.
Erez
oBFusCATed:
--- Quote from: erezz on October 29, 2013, 11:21:16 am ---This seems wrong to me.
--- End quote ---
In fact this is a very cool feature (at least for me).
To disable it Settings -> Editor -> General -> Indent -> Brace Smart Indent
erezz:
--- Quote from: oBFusCATed on October 29, 2013, 11:32:57 am ---
--- Quote from: erezz on October 29, 2013, 11:21:16 am ---This seems wrong to me.
--- End quote ---
In fact this is a very cool feature (at least for me).
To disable it Settings -> Editor -> General -> Indent -> Brace Smart Indent
--- End quote ---
I tried to check/uncheck "Brace Smart Indent". I didn't see any difference in the foo2 test.
Erez
oBFusCATed:
Works as expected here.
Navigation
[0] Message Index
[*] Previous page
Go to full version