User forums > Using Code::Blocks
curly braces and auto indent
nightlight:
Unfortunately, due to the broken smart indentation for Whitesmith style as described in the previous post, I reverted back to C::B 10.05 version. When I get some time, I will look into C::B sources and fix the bug if it is still there by then.
oBFusCATed:
Please report it in the sf.net issues page, so it won't be forgotten.
Here it will be.
lewashby:
I'm using Code::Blocks v 13.12 and my 'Bracket Style' is set to 'Allman (ANSI)' under _ Settings -> Editor -> Source formatter -> TAB-Style.
Also under _ Settings -> Editor -> General settings -> TAB-Editor settings I have most of the options checked, Auto indent, Smart indent, Brace completion, etc...
oBFusCATed , what's the website where I can report this problem again? Thanks.
Rehash of my problem
if I type 'int main() + [Return]' then type '{'
I get this
int main()
{} // does not automatically drop the second curly brace '}' down two lines and insert a TAB or 4 spaces between the two curly braces and place the cursor there, I have to do it all manually.
I then have to place the cursor between the two curly braces '{}' and press [Return] twice, press [Arrow Up], and then press TAB.
oBFusCATed:
https://sourceforge.net/p/codeblocks/tickets/
shar136:
I have been experiencing the same problem, and logged it here https://sourceforge.net/p/codeblocks/tickets/472/.
Let us hope someone fixes it, since it used to work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version