In Eclipse the text goes beyond page

Anne Bailly :

I have a problem in Java Eclipse in that when I type a long sentence it goes beyond the border of my PC screen, so that I have to scroll to the right to be able to read a long sentence. I would like the text to stay within the screen, or within specific parameters, so that I don't have to scroll. Is there a way to do this?

I tried Googling a solution but can't find a way to get text to stay within screen limits :(

ExoVamp :

I found a button on the Toolbar.

In Eclipse ide 2019-03:
Toggle Word Wrap: Alt+Shift+Y

enter image description here

Depending on which version of Eclipse you use, there may be a way to enable Word Wrap.

In the question How do you enable word-wrap by default in Eclipse? Emmanuel Guiton explains that there is a setting which can be added manually to a preference file. Mickael states that Eclipse Neon uses the aforementioned shortcut.

Edit: Changed "Eclipse Oxygen ide 2019-03" to "Eclipse ide 2019-03"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=122984&siteId=1