Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Eclipse the text goes beyond page

Tags:

java

eclipse

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 :(

like image 306
Anne Bailly Avatar asked Jan 22 '26 22:01

Anne Bailly


1 Answers

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"

like image 177
ExoVamp Avatar answered Jan 25 '26 12:01

ExoVamp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!