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 - Regression in behaviour of indentation
Summary: Regression in behaviour of indentation
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-03-19 19:00 UTC by Jaroslav Tulach
Modified: 2007-11-05 13:39 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 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.