Sublime Forum

Too long line

#1

I’m using ST 3 and I write some really long lines. The lines go out of the screen and I need to scroll right to see it and it’s not comforting for me. I want to be able to see all the text in a few lines. The problem is that in the language I use it matters if the command is in more then one line, because it reads every command from the start of the line, and not from a symbol like in Javascript.

I know that it is possible that it will be written in a few lines and the line counter on the left side of the screen will count it as the same line, but I don’t know how.

Here is an example of what I mean:
Like line six, which gets to the end of the screen and
goes down, but it counts it as if it is the same line.
IMG_20200712_193030

Does anyone know how do I do that?

0 Likes

#2

Sounds like what you want is word wrap. You can turn it on temporarily by picking the View > Word Wrap item from the menu, but you can also just set the appropriate settings instead:

	// Disables horizontal scrolling if enabled.
	// May be set to true, false, or "auto", where it will be disabled for
	// source code, and otherwise enabled.
	"word_wrap": "auto",

	// Set to a value other than 0 to force wrapping at that column rather than the
	// window width
	"wrap_width": 0,

Values shown here are the defaults; you can set word_wrap to true to always enable it. wrap_width sets the location where the wrap happens; you ca set that to some number (e.g. 80) if you want to always wrap at the same place. The default is to wrap at the edge of the edit area.

2 Likes

#3

Thank you, that really helps! I really appreciate it. :smile:

0 Likes