Menu

#8 Group brace "}" no indent

open
nobody
Code Editor (4)
5
2006-03-28
2006-03-28
Anonymous
No

Using version 2.5 A Beta

Ok, thats what I'm doing step by step:

1. Have some indented code, and write new code:

[TAB]while (true){

2. Then I press <Enter> to go to the next line:

[TAB]while (true){
[TAB][TAB][] <-- cursor is indented properly

3. I hit just "}" to end my group (block) braces,
3a. I expected:

[TAB]while (true){
[TAB]}

3b. I get:

[TAB]while (true){
}

NOTES:
1. Space marked as [TAB] is TAB or some SPACES.
2. Same happens in any case of indented brace "{".
3. Works fine when the group block is filled.

So I get wrongly indented line, which I have to
correct every time when I'm closing braces. It's very
minior but quite annoying. Maybe this one should go to
feature requests, if so, I'm really sorry.

Andrzej Czyz, (blindfold)
andrzej.czyz@blindfold.z.pl

Discussion


Log in to post a comment.

MongoDB Logo MongoDB