Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 23579

Summary: Optional soft wrap of long lines
Product: [Eclipse Project] JDT Reporter: Eric Nickell <nickell>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: bogofilter+eclipse.org, bugs, ggregory, pombredanne, quartz12h, xmehaut
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Eric Nickell CLA 2002-09-13 17:58:36 EDT
I developed for many years (since 1984) using Cedar's node-structured editor,
Tioga, developed my Michael Plass, a student of Knuth.

Those who use Tioga for developing code use a node for each line of code.  When
a line cannot fit the available viewing space, Tioga soft-wraps the code onto
the next line, in accordance with the style rules which apply to the current
node.  Most developers have this be a hanging indent, so that long lines remain
distinguishable to the eye, the flow of the code reading is not interrupted,
modifications to the line don't require the developer to reformat the lines
manually, and the code stays readable when the window changes size, since Tioga
then reformats the node for the current boundaries.

I'd like to see JDT's editor have this same feature:
1) soft wrap is enabled by a Preference. When enabled...
2) Lines of code which cannot fit entirely in the current
   screen are soft-wrapped
3) Lines are broken at the last visible token boundary
4) Remainder of line is displayed on next line at same
   indentation plus 3 tab-equivalents.
5) The effects are in the display only; no actual new lines
   are inserted into the code.
Comment 1 Kai-Uwe Maetzel CLA 2002-09-18 12:46:52 EDT
*** Bug 22713 has been marked as a duplicate of this bug. ***
Comment 2 Kai-Uwe Maetzel CLA 2002-09-18 12:47:58 EDT
*** Bug 23212 has been marked as a duplicate of this bug. ***
Comment 3 Kai-Uwe Maetzel CLA 2002-09-27 13:44:59 EDT
*** Bug 23801 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2004-03-11 02:55:13 EST
Note: normally we close newer bugs as duplicate of older ones. In this case the
newer bug has already some votes while this one does not.


*** This bug has been marked as a duplicate of 35779 ***
Comment 5 Dani Megert CLA 2005-06-16 01:19:06 EDT
*** Bug 100315 has been marked as a duplicate of this bug. ***