Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Quentin028 on December 28, 2012, 10:56:31 am

Title: How to make automatic indent after opening braces?
Post by: Quentin028 on December 28, 2012, 10:56:31 am
Hi,

I'm using Code::Blocks 12.11 and I'd like you to remind me how can I set IDE's options in order to enable automatic indent after opening braces?

What I mean is, after opening a brace, how to make cursor:

Code
{|} <--- cursor

go in here:

Code
{
    | <--- cursor
}

?

I had it enabled in C::B 10.05 but now I can't recall how to get it working again...
Title: Re: How to make automatic indent after opening braces?
Post by: Alpha on December 30, 2012, 12:10:46 am
Are the SmartIndent* plugins installed and enabled?
Title: Re: How to make automatic indent after opening braces?
Post by: Quentin028 on December 30, 2012, 07:13:03 pm
Oh, so it's the plugin I need... Unfortunately I can't install any additional add-ons on my Ubuntu 12.10:

According to the C::B website:

Quote
Important note for Ubuntu users: The contrib-plugins package for debian can not be used on Ubuntu 12.04 and 12.10, due to an incomaptible libhunspell-package. Alternatively you can use the Ubuntu repo provided by our user pasgui.
Title: Re: How to make automatic indent after opening braces?
Post by: oBFusCATed on December 30, 2012, 07:14:55 pm
Alternatively you can use the Ubuntu repo provided by our user pasgui.
Try this one...

and the link is: https://launchpad.net/~pasgui/+archive/ppa/ (probably)
Title: Re: How to make automatic indent after opening braces?
Post by: Jenna on December 30, 2012, 07:58:34 pm
That's how the note on the website really looks like (note, that the word repo is a link to pasgui's repo):
Quote from: http://www.codeblocks.org/downloads/26#linux64
Important note for Ubuntu users: The contrib-plugins package for debian can not be used on Ubuntu 12.04 and 12.10, due to an incomaptible libhunspell-package. Alternatively you can use the Ubuntu repo (https://launchpad.net/~pasgui/+archive/ppa/) provided by our user pasgui.