Sublime Forum

How to show a very long line without scrolling horizontally

#1

Hello everybody!

I’m having a trouble i really don’t know how to fix.
I’m building a website and i’m having very long PHP lines. Being them very long, i am forced to scrll horizontally to view them… here is an example:
http://www.fontanavideostudios.com/public/stext_longlines.jpg
As you can see, the lines 20 and 21 are not completely visible, being them too long. So, to see them entirely i need to scroll right, which is quite annoying.
I don’t know why, but in some others PHP files i created (this looks quite random…), there is a some kind of functionality activated that allows me to see all the line without scrolling. Here is an example:
http://www.fontanavideostudios.com/public/stext_longlines2.jpg
As you can see, now the line 20 is displayed in two lines! So i can see the whole line without scrolling horizontally. (N.B.: there is no new line, because both lines belongs to line 20).
Can anybody tell me how i can activate this functionality to all files?

Thanks a lot :smile:

0 Likes

#2

ctrl+shift+p (or cmd+shift+p): ww (word wrap) toggle.

1 Like

#3

AMAZING! Thanks a lot! :smiley:

0 Likes