Search code examples
sublimetext3sublimetext2sublimetextindentationtext-indent

How does Word Wrap work in SublimeText?


When I have Word Wrap enabled and the document gets long and a lot of nested HTML elements are there, then down the line only one character per line is displayed at the right side (due to constant indentation of nested elements ). How do I overcome this situation? How do I deal with it?

looks nice

nesting is getting content to right

2 and later 3 characters per line


Solution

  • When coding with Word Wrap enabled, the comments will be wrapped while the indentation will be kept. This results in only a few symbols for each line.

    If you open Sublime Text's Command Palette and type in Word Wrap: Toggle, the lines will no longer be wrapped and you'll be able to see the comments normally. Using this command again will restore the wrapping to the default.

    Example code with Word Wrap disabled:

    Code with Word Wrap disabled

    Code with Word Wrap enabled:

    Code with Word Wrap enabled