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 - Keep consecutive statements on the same line
Summary: Keep consecutive statements on the same line
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-21 19:03 UTC by ale4349koc
Modified: 2008-03-25 12:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!