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 56679

Summary: Regression in behaviour of indentation
Product: editor Reporter: Jaroslav Tulach <jtulach>
Component: Formatting & IndentationAssignee: issues@editor <issues>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2005-03-19 19:00:26 UTC
In 4.0 this worked fine, but in current trunk the behaviour of enter is just
silly. Imagine following code and cursor at |: 

public final class Board {
    private Board (int x1, int y1, int x2, int y2) {
        players = new Player[] {
            new Player (x1, y1),|

then pressing enter places me:
            new Player (x1, y1),
                    |

while the natural (and original behaviour of previous version) was:
            new Player (x1, y1),
            |

I consider this a regression which hugely slows down the way I can type text in
our editor.
Comment 1 Miloslav Metelka 2005-03-22 10:25:15 UTC
Yardo, please change the Tools->Options->Editor Settings->Java
Editor->Indentation Engine->Statement Continuation Indent from 8 to 0. That
should resolve the problem.
Comment 2 Roman Strobl 2005-07-14 13:59:52 UTC
Verified, although this setting won't probably satisfy everyone. We need to
improve the formatter.