Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Linux_dWiebe on December 11, 2012, 10:58:13 pm

Title: [SOLVED] Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: Linux_dWiebe on December 11, 2012, 10:58:13 pm
Is this an aspect of CB from now on? Or is it customizable via a setting?

Description of problem:
Editing a .c file....
Type '{' and CB automatically makes this '{|}' with the cursor where the '|' is.

What I like it to do is this:
Type '{' and it goes to this:
{
     |
}

with the '|' being the cursor.

Any help would be appreciated.
Title: Re: Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: Alpha on December 13, 2012, 11:57:48 pm
Do you have the SmartIndent plugins installed and enabled?
Title: Re: Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: killerbot on December 14, 2012, 12:08:10 am
what you described, used to be like that for sure for a c++ file, but last 24 hours some commits occurred, not sure if they influenced this ?
Title: Re: Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: Linux_dWiebe on December 14, 2012, 01:58:34 am
Do you have the SmartIndent plugins installed and enabled?
I didn't, but I do now. I installed codeblocks-contrib and made sure SmartIndent was enabled and it works now. Thanks a lot!
Title: Re: [SOLVED] Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: pokemon on January 23, 2013, 08:02:49 pm
Where can I plug Smartident? I installed codeblocks-contrib taken from "deb http://apt.jenslody.de/testing testing main". I write in C. In the list of plugins Smartiden not.
Title: Re: [SOLVED] Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: Jenna on January 23, 2013, 08:45:39 pm
Where can I plug Smartident? I installed codeblocks-contrib taken from "deb http://apt.jenslody.de/testing testing main". I write in C. In the list of plugins Smartiden not.
The plugin libs have been renamed, you might need to run
Code
sudo dpkg-reconfigure codeblocks-contrib
and make sure that the SmartIndent-plugins (and probably others) you need are checked.
Title: Re: [SOLVED] Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: pokemon on January 23, 2013, 09:34:00 pm
Thank you. Plugin SmartIdent really been disabled.
Title: Re: [SOLVED] Code::Blocks SVN 8599 - Typing '{' does not put cursor on next line
Post by: Jenna on January 23, 2013, 11:10:35 pm
I just committed a change to the debconf-config files, that make sure the question which plugins should be loaded is asked again, if the plugins list has changed.