User forums > Using Code::Blocks

indentation for class and function

(1/1)

atulshanbhag:
Is there any way to indent function and classes like this ->

data-type function() {
    ....
    ....
    ....
}

Instead of
data-type function()
{
    ....
    ....
    ....
}

It doesn't make an empty line to type in code when I use newline after opening brace

marcelinux:
Maybe Astyle plugin can help you.
http://www.codeblocks.org/docs/main_codeblocks_en3.html#x3-460002.1

atulshanbhag:
That indents all right but not while actually coding. When i create say 'void function() { ' and press enter i get a '}' but on immediate next line where i cannot type. this does not happen for if/else and while/for

oBFusCATed:
So you want to type { and cb to output the } on the next line?

ouch:
Have you looked at the abbreviations plugin? You can create your own to do that and more. (settings->editor->abbreviations)

Navigation

[0] Message Index

Go to full version