Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
indentation for class and function
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: indentation for class and function (Read 2738 times)
atulshanbhag
Single posting newcomer
Posts: 2
indentation for class and function
«
on:
August 01, 2015, 08:44:31 am »
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
Logged
marcelinux
Multiple posting newcomer
Posts: 10
Re: indentation for class and function
«
Reply #1 on:
August 01, 2015, 02:46:52 pm »
Maybe Astyle plugin can help you.
http://www.codeblocks.org/docs/main_codeblocks_en3.html#x3-460002.1
Logged
I just need learn a little bit more. Thank you for your help.
atulshanbhag
Single posting newcomer
Posts: 2
Re: indentation for class and function
«
Reply #2 on:
August 01, 2015, 09:13:30 pm »
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
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: indentation for class and function
«
Reply #3 on:
August 02, 2015, 10:40:38 am »
So you want to type { and cb to output the } on the next line?
Logged
(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
Almost regular
Posts: 223
Re: indentation for class and function
«
Reply #4 on:
August 03, 2015, 11:19:21 pm »
Have you looked at the abbreviations plugin? You can create your own to do that and more. (settings->editor->abbreviations)
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
indentation for class and function