I would like to display invisible line endings in Sublime Text 3, as for example in Notepad++. How can we do that?
This is useful because when the automatic word wrap mode is ON for example, because it becomes hard to distinguish soft line breaks from real ones.
So normal Sublime editing normalizes all line endings to be the same, so showing a line ending glyph doesn't make sense in normal editing. Simply look down in the status bar and you will see whether line endings are Windows, Unix, or macOS.
In order to do this in Sublime you need to open your preferences file (On OSx that is ⌘+, ) and insert the line "draw_white_space": "all" . By default it is set to "selection" and the other option is for it to be "off".
In Sublime Text 2, you can use CTRL + SHIFT + P to access quickly to some functionalities. Type tabs and you will find the View: Toggle Tabs functionality.
The package RawLineEdit is pretty good for this. It toggles on-and-off a mode where you view and can edit line endings by selecting Raw Line Edit: Toggle
from the Sublime ctrlshiftp command prompt.
This is good if you want to be able to flick line endings visibility on and off on the occasions when you want to see it (it's not the best option if you want line endings to be always visible).
It's also very useful for seeing (and editing) if you've ended up with crlf
problems, with windows-style cr
carriage return characters getting mixed up with the standard lf
line end characters shown as ¬
:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With