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 192607

Summary: Editor fails to dedent
Product: editor Reporter: darkest_fright
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description darkest_fright 2010-11-28 21:29:54 UTC
After installing patch 2, the Java editor fails to dedent braces for control stuctures and method bodies.

For example: when I type:

if(boolean_expression)
     doSomething()

it works correctly.  Before the patch, if I wanted doSOmething() to be in a code-block the editor would automatically adjust the indent to match the identation level of the if-statement:

if(boolean_expression)
{

Currently, it does this instead:

if(boolean_expression)
    {

Even after pressing enter, the editor fails to adjust it so I am left with:

if(boolean_expression)
    {

}
Comment 1 Dusan Balek 2010-11-29 08:51:15 UTC
Already fixed.

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