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 - Editor fails to dedent
Summary: Editor fails to dedent
Status: RESOLVED DUPLICATE of bug 192098
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 21:29 UTC by darkest_fright
Modified: 2010-11-29 08:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***