Author Topic: How to make automatic indent after opening braces?  (Read 9866 times)

Offline Quentin028

  • Single posting newcomer
  • *
  • Posts: 7
How to make automatic indent after opening braces?
« 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...

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: How to make automatic indent after opening braces?
« Reply #1 on: December 30, 2012, 12:10:46 am »
Are the SmartIndent* plugins installed and enabled?

Offline Quentin028

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to make automatic indent after opening braces?
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to make automatic indent after opening braces?
« Reply #3 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)
« Last Edit: December 30, 2012, 07:16:37 pm by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How to make automatic indent after opening braces?
« Reply #4 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 provided by our user pasgui.