This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 192604

Summary: last } does not get to it's right place
Product: editor Reporter: Mr.Axe
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Mr.Axe 2010-11-28 19:16:39 UTC
after typing
[code]
if ( a>b ) {
    statement 1;
    statement 2;
    <------------- cursor standing here
[/code]

I press "}" in this moment and I get:

[code]
if ( a>b ) {
    statement 1;
    statement 2;
    }
[/code]

Some time ago in the same situations I always got: 
[code]
if ( a>b ) {
    statement 1;
    statement 2;
}
[/code]
Brace must automatically take the right position, but it doesn't
Comment 1 Dusan Balek 2010-11-29 09:07:48 UTC
Already fixed in the current dev build.

*** This bug has been marked as a duplicate of bug 192098 ***