Community
Participate
Working Groups
The code formatter keeps getting better and better - thanks guys. Looking at the I20040203 build, I notice that the Whitespace configuration tab has changed a little. In the Arrays section, there are the usual options for whitespace inclusion before/after brackets. In Array declarations and Array initializers, there is also the option to select whether or not there are spaces between empty brackets. This is great, but needs to also be offered in the Array allocation configuration as the same configuration choice can be made there. With the current options, I could choose to format as either: // No whitespace before/after brackets int[] array1 = new int[] int[] array2 = new int[3]; OR // Whitespace before/after brackets int[] array1 = new int[ ] int[] array2 = new int[ 3 ]; Whereas I want the best of both worlds :) // Whitespace before/after brackets, no whitespace between empty brackets int[] array1 = new int[] int[] array2 = new int[ 3 ];
You can do that since I20040129: Uncheck 'Space between empty brackets' but check 'Space after open and before close bracket'
Actually, I think you might have misread what I've put. The option you mention *is* there on "Array declarations" and "Array initializers" (cool), but what I was saying was that it *isn't* there on "Array allocation" (but should be). This is on I20040203 Thanks, and sorry if my original report was unclear...
ok, now I see. Thanks. Moving to jdt.core
Fixed and released in HEAD. Regression test added.
Verified in 200402121200.