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 130820

Summary: Keep consecutive statements on the same line
Product: java Reporter: ale4349koc <ale4349koc>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description ale4349koc 2008-03-21 19:03:35 UTC
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.
Comment 1 Vitezslav Stejskal 2008-03-25 12:38:20 UTC
'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!