User forums > Using Code::Blocks
Indentation in cb
erezz:
Suppose that I have this code:
--- Code: ---void foo(int a)
{
int b;
}
--- End code ---
If I put the cursor in line 4 (below "int b;"), it is located at the beginning of the line. Now, if I click the "Enter" key, I would expect the cursor to be at the beginning of the line + one tab. Instead, it is located at the beginning of the line. This is annoying when you write lots of code.
Another issue:
--- Code: ---void foo1(int a, int b)
{
printf("abcd %d %d",);
}
--- End code ---
Now, I put the cursor after the "," in the printf line. I click the "Enter" key, and the cursor moves to the next line below the "p" char. How can I make it be below the opening " char (i.e one tab + strlen("printf") + 2 from the beginning of the line)?
Thanks,
Erez
oBFusCATed:
Do you have the SmartIndent plugins installed and enabled?
erezz:
--- Quote from: oBFusCATed on October 28, 2013, 05:57:23 pm ---Do you have the SmartIndent plugins installed and enabled?
--- End quote ---
Seems that I don't have it. I was hoping to find this plugin here: http://wiki.codeblocks.org/index.php?title=SmartIndent_plugin, but the page is empty. Where can I install it from?
Thanks,
Erez
Jenna:
It depends on your OS and from where you installed C::B.
If you are on linux, you have to install the codeblocks-contrib packages.
If you are on debian and have the codeblocks-conrib packages installed, you might need to run
--- Code: ---sudo dpkg-reconfigure codeblocks-contrib
--- End code ---
and make sure the appropriate plugins are selected.
erezz:
--- Quote from: jens on October 29, 2013, 07:59:29 am ---It depends on your OS and from where you installed C::B.
If you are on linux, you have to install the codeblocks-contrib packages.
If you are on debian and have the codeblocks-conrib packages installed, you might need to run
--- Code: ---sudo dpkg-reconfigure codeblocks-contrib
--- End code ---
and make sure the appropriate plugins are selected.
--- End quote ---
I'm using Ubuntu 12.04. I don't have the codeblocks-contrib packages installed. If I installed C::B from the svn tree, do I need to generate this package with a specific 'make' command or do I need to download the codeblocks-contrib packages from the network?
Thanks,
Erez
Navigation
[0] Message Index
[#] Next page
Go to full version