Render Line Endings
This extension shows end-of-line characters (CR, LF, or CRLF) when whitespace rendering is turned on. Additionally, it can mark all non-default line endings in a different color. Furthermore, it can be also configured to show trailing whitespace characters as errors.
Since extension only renders visible portion of text, it is fast even for huge documents.
Fully supports language-specific EOL settings.
If whitespace rendering is turned on, you will see symbol for either LF (
Works well with
Supports rendering only selection (
Supports highligthing of non-default EOL - even with language-specific settings
Supports highlighting of training whitespace (
This extension contributes the following settings (compatible with
Color is taken from
Default line ending is determined based on
Atom Style Configuration
Mark Non-Default Line Ending
Mark Extra Whitespace
Mixed Line Endings Are Not Supported
Visual Studio Code normalizes line endings upon load and thus this extension will only show one kind of line ending character. Currently it is not possible to have multiple different line endings (see issue 127).
CR Line Ending Is Not Supported
Visual Studio does not support CR line ending (see issue 35797). Therefore, while you can configure it, you will never see CR as a line ending.
Not Rendering Glyphs For Large Files
For performance reasons Visual Studio Code doesn't synchronize files that are
over 5MB in size (see issue 27100).
Therefore, no line-ending characters will be visible on large files. To avoid
this you can set
Slow Update For Large Files
If there is an extension that parses the whole text (e.g. other line ending visualization extension), you might see delayed line ending character updates and temporary visual artefacts. This is due to serial nature of event processing within VS Code. The only workaround is to disable other line ending extension.