Search code examples
javaeclipseformattingeditorword-wrap

Can Eclipse's Java editor do soft line wrapping?


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.

Multi-pane Editor Example

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?

Good Editor Example


Solution

  • This bug has been finally fixed in Eclipse 4.6 Neon: https://www.eclipse.org/eclipse/news/4.6/platform.php#word-wrap

    EDIT: Here's a screenshot of a Java editor with the feature active. Screenshot showing this in action