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 269012 - Wrapping before commas
Summary: Wrapping before commas
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2016-11-17 08:04 UTC by Yaytay
Modified: 2016-11-17 08:04 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Yaytay 2016-11-17 08:04:04 UTC
I find this layout:
    public ValidationFailure(String producerCode
            , String contentOwnerCode
            , String code
            , String destinationCode
            , ValidationFailureType failureType
            , String optionKey
            , String optionValue
            , String message
    ) {
 much easier to work with than this:
    public ValidationFailure(String producerCode,
             String contentOwnerCode,
             String code,
             String destinationCode,
             ValidationFailureType failureType,
             String optionKey,
             String optionValue,
             String message
    ) {

But I don't think there is any way to tell the formatter to use that layout.

Please can you add a "Wrap After Comma" option to the Editor->Formatting->Java->Wrapping setup (equivalent to the various "Wrap After" options that are already there and default to checked to retain the existing behaviour)?