I like to use Eclipse’s Java editor feature that allows the me to split the editor window into several panes so I can look at multiple files at once (See below). When I do this, the editors usually can’t display the longest lines, and I have to use the horizontal scroll bar.
I don’t want to reformat the source itself because the window widths change depending upon what I’m looking at. So what I’m looking for is a soft line wrap, like many editors support (See below). Can I do this in Eclipse?
This bug has been finally fixed in Eclipse 4.6 Neon:
When it’s activated in the preferences word wrap will be automatically enabled in all open editors when Eclipse is started.
See the project page:
It seems that this is not possible in Eclipse at this time; this feature has been requested and unimplemented since 2003 with 103 users on the CC list.
There is now a plugin allowing soft wrapping. It is experimental and will break the line numbering.