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.
Sometimes NB 6.0 does wrong or inconvenient formatting. NB 5.x does not so. Example I want to keep all next initializations on one line, like: idxN = -1; idxT = -1; idxM = -1; idxU = -1; But every time when I format my java class by “Shifr-Alt-F”, NB splits them on separate lines: idxN = -1; idxT = -1; idxM = -1; idxU = -1; I think it is very inconvenient and should be fixed.
'NB 5.x does not so' because its formatting skills were pretty basic. I guess we could add an option for keeping consecutive statements on the same line if they already are on the same line. This however is definitely not a defect, but RFE. Thanks for your report!