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 137873 - Auto indent when new braces added
Summary: Auto indent when new braces added
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-21 08:04 UTC by carentrica
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carentrica 2008-06-21 08:04:59 UTC
If I have a series of statements, thus...

    statement1;
    statement2;
    statement3;
    statement4;

... and I decide that I need to add, for instance a condition (if {} block) for statement2 & statement3, I get...

    statement1;
    if (some condition) {
    statement2;
    statement3;
    }
    statement4;

in which case I have to manually indent the two newly enclosed statements to preserve formatting.

I would like the editor to do this automatically when the closing brace is added, as many other IDEs and code editors 
do.
This feature could also be configurable (on/off - default on).