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.
Summary: | Having "Java --> Braces Placement --> Other" set to "New Line" messes up the formatting of functional loops | ||
---|---|---|---|
Product: | editor | Reporter: | Xavion |
Component: | Formatting & Indentation | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Xavion |
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Xavion
2015-11-11 05:12:24 UTC
I've managed to work around this problem by setting "Java --> Braces Placement --> Other" to "New Line Half Indented". Here's how it looks on Linux (v8.1): aList.stream().forEach((anItem) -> { doSomeStuff(); }); Here's how it looks on OS X (v8.1): aList.stream().forEach((anItem) -> { doSomeStuff(); }); As you can see, the arrow is still a long way from where it should be. I want it back on the previous line (as it was in v8.0.2). However, at least the function call isn't indented one/two levels too many anymore. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/4f14e07cf2dd Integrated into 'main-silver', will be available in build *201511270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4f14e07cf2dd User: Dusan Balek <dbalek@netbeans.org> Log: Issue #256509 - Having "Java --> Braces Placement --> Other" set to "New Line" messes up the formatting of functional loops - fixed. |