Visual Studio Code: How to show line endings

tonka picture tonka · Sep 16, 2016 · Viewed 249.7k times · Source

How can i display lineendings (CR,LF) in Visual Studio Code (not in Visual Studio).

I use following settings, but non of them show the line endings.

"editor.renderWhitespace": true,
"editor.renderControlCharacters": true,
"editor.renderIndentGuides": true

Is there a setting for lineendings?

Edit 1: I've opened a issue on GitHub: https://github.com/Microsoft/vscode/issues/12223

Edit 2: Soham Kamani made an extensions for this: code-eol

Answer

Llewey picture Llewey · Sep 16, 2016

AFAIK there is no way to visually see line endings in the editor space, but in the bottom-right corner of the window there is an indicator that says "CLRF" or "LF" which will let you set the line endings for a particular file. Clicking on the text will allow you to change the line endings as well.

enter image description here