Sublime Forum

How to make text that doesn't fit in window go to next line?

#1

So yesterday I was using Sublime Text 3 to learn some PHP and whenever the text on one line couldn’t be displayed in one line on the window anymore, it would automatically go to the next line (with a slight indent meaning it’s not actually on another line but just displayed that way because my window wasn’t big enough.

Today I was writing some HTML and whenever the window didn’t fit my text, it would extend the window to the right and made it so I had to scroll to the right to read the whole line.

How do I get it back to how it was yesterday?

And also how do I make the sidebar display folders as well as the file I have open?

0 Likes

#2

Add the following to your user settings.

“word_wrap”: true

You may want to alternatively create a Syntax specific setting for HTML, but that’s up to you.

Go to View -> Side Bar -> Show Open Files

0 Likes

#3

Hmm word wrap did not work for HTML or PHP code.

And I would like to not only see which files are open, but also the folder directory containing the file. I remember seeing a video tutorial where the instructor had the folders showing.

0 Likes

#4

I was wrong about “auto” it’s actually wrap everything but source. But that doesn’t really matter I suppose. Can you post your user settings? Perhaps you have something wrong there. I’m using html highlighting and it seems to wrap fine. If you could also post a snippet that isn’t wrapping, it would help also.

It sounds like you want to create a project. In the menu, go to Project -> Add Folder to Project. You will also want to save the project so you can access it later. To do this, go to Project -> Save Project As.

0 Likes

#5

Oh I see!

The user settings file WAS incorrect. I had “word wrap”:true instead of “word_wrap”:true.

So the folders show up only within one project. I understand now.

Thank you so much for your fast replies and awesome help.

0 Likes