Reputation: 28188
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?
Upvotes: 19
Views: 5811
Reputation: 6488
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.
Upvotes: 6
Reputation: 1324937
February 2014: the new repo de.cdhq.eclipse.wordwrap from Florian Weßling (ColdDevil) does provide good wrapping.
It just got updated to support Auto-Wrapping on Startup:
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:
Upvotes: 5
Reputation: 15715
There is now a plugin allowing soft wrapping. It is experimental and will break the line numbering.
http://ahtik.com/blog/projects/eclipse-word-wrap/
Upvotes: 1
Reputation: 28188
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.
Upvotes: 3
Reputation: 160201
Nope. Not that is hasn't been asked for.
There's a plugin but I've never used it.
Upvotes: 10