News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

indentation for class and function

Started by atulshanbhag, August 01, 2015, 08:44:31 AM

Previous topic - Next topic

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

I just need learn a little bit more. Thank you for your help.

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?
(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!]

ouch

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