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.
Product Version: NetBeans IDE Dev (Build 091119-840bbe3ddcb3) Java: 1.5.0_17-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_17-ea-b01 code: class G_Check { private static $sizeUnits = array( "item" => array( "item" => array( ) ) ); } after formatting: class G_Check { private static $sizeUnits = array( "item" => array( "item" => array( ) ) ); } I think the first one is much better :). However, see issue 177250 before.
this behavior is related to the change of the default continuation indent size (to be twice the indent size). the question is whether the indentation within arrays should be driven by cont indent size as currently implemented (disadvantage: it looks weird with the new defaults as pointed out by Filip, advantage: it is consistent with the formatting of function calls and declarations), or should it be equal to the indent size - then maybe it also need to be changed for functions
closed by mistake, reopening
ppisl is the new owner of formatting/indentation area
This is fixed by adding options to the formatting engine now.