Bug 29110 - RFE: Disable line splitting in the code formatter
Summary: RFE: Disable line splitting in the code formatter
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-07 15:29 EST by Tim Moore CLA
Modified: 2004-09-27 14:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Moore CLA 2003-01-07 15:29:46 EST
Currently, setting the "maximum line length" to 0 (in the Java > Code Formatter 
> Line Splitting preferences) causes the formatter to unwrap all lines when 
formatting.  I would like an option to have the formatter leave the current 
wrapping intact.
Comment 1 Olivier Thomann CLA 2003-01-15 13:31:20 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in progress. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 2 Olivier Thomann CLA 2003-01-15 13:32:03 EST
Changed milestone.
Comment 3 Philipe Mulet CLA 2003-06-12 06:35:38 EDT
Resurrecting for 3.0
Comment 4 Olivier Thomann CLA 2003-06-12 15:58:54 EDT
Reopen for 3.0 consideration.
Comment 5 Olivier Thomann CLA 2003-10-03 10:17:40 EDT
This is addressed in the new formatter by specifying no alignment.
Fixed and released in HEAD.
Regression test added.
Comment 6 David Audel CLA 2003-10-14 07:08:26 EDT
Verified.
Comment 7 Geoffrey Wiseman CLA 2004-09-27 14:24:30 EDT
Would like to be able to use this feature, but I don't understand the comment. 
"No alignment"?  Where is that set?

I want to be able to leave the existing line wrapping in place - neither split
nor  join existing lines.

More to the point, what I'd really like is the option to tell Eclipse that I
want it to split lines, according to the pre-specified rules, as necessary, but
not to join them.  That way I could 'correct' its choices as I see fit as long
as I ensure that I don't go beyond the wrapping threshold.