Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you enable word-wrap by default in Eclipse?

Simple question: how do you enable word-wrap by default in Eclipse? I looked at this plugin but it only goes up to Luna. In addition, this plugin is a separate text editor and does not have syntax highlighting or validation. I'm open to other suggestions.

like image 384
Daniel Harris Avatar asked Sep 20 '16 14:09

Daniel Harris


People also ask

How do I change the default word wrap in Sublime text?

The only way to enable word - wrap is to do it on a per file basis, by going to View -> Word Wrap (tick). This setting was working fine a while ago.

Which software automatically wraps the text on the next line?

The correct answer is Word Wrap. Word Wrap is the tool used to wrap text to the next line as it reaches the right margin in MS Word. When the right margin is reached while typing, a word processor's Word Wrap feature will automatically force content to a new line.

How do you break a long line in eclipse?

:) Also in Window->Preferences->General->Editors->Text there is an option "show print margin". If you turn it on you'll always see vertical gray line that shows you when to break to a new line. You have to set the max line width to a very large number, like 1000.


1 Answers

Word wrap is available in Eclipse Neon IDE: https://www.eclipse.org/neon/noteworthy/#_word_wrap_in_text_editors.

Just consider using the latest version.

Keyboard shortcut: Alt+Shift+Y

Or button:

enter image description here

Or menu Window > Editor > Toggle Word Wrap:

enter image description here

like image 141
Mickael Avatar answered Oct 05 '22 01:10

Mickael