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 262427

Summary: Ability to wrap generic parameters if line too long
Product: editor Reporter: _ gtzabari <gtzabari>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ gtzabari 2016-06-14 13:28:57 UTC
Given:

private static abstract class AbstractSortableMultimapBuilder<T, K, V, A extends Multimap<K, V>, R extends Multimap<K, V>>

Where the editor width is set to 80 characters, it should be possible to configure Netbeans to wrap generic parameters as follows:

private static abstract class AbstractSortableMultimapBuilder<T, K, V,
A extends Multimap<K, V>,
R extends Multimap<K, V>>

and possibly even try to horizontally-align the generic parameters.

Currently, Netbeans refuses to wrap generic parameters no matter how long the line gets and will un-wrap the line if a user manually moved the parameters onto a new line.