question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Display mixed line endings explicitly in status bar as "LF (mixed)" or "CRLF (mixed)"

See original GitHub issue

When opening a file with mixed line endings, vscode is still showing it as LF or CRLF in the status bar. After saving, it fixes it, but I think it should show, for example, LF (mixed) (maybe with squiggle or ⚠️ icon) until the file is modified. This is important so that you know the file still has mixed EOLs, and you might want to fix that.

To reproduce: printf "lf\ncrlf\r\ncr\rnone" > mixed-eol.txt && code mixed-eol.txt If you open this file in Notepad++ and enable visible EOL, you can see it has mixed endings.

(Posted from https://github.com/microsoft/vscode/issues/12223#issuecomment-391511403 as separate issue.)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:32
  • Comments:8

github_iconTop GitHub Comments

1reaction
vscode-triage-botcommented, Apr 29, 2021

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

1reaction
microestccommented, Mar 30, 2021

When a file contains a mixture of lf and crlf, I don’t want to change any lf or crlf changes when I save and format the code, but now the reality is that it changes automatically

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show line endings - Visual Studio Feedback
I just opened a file with mixed line endings today and this is not very useful at all. When the said file is...
Read more >
Visual Studio Code: How to show line endings - Stack Overflow
At present, this extension doesn't do what it purports to. In a file of mixed line endings, it shows line endings as if...
Read more >
CRLF vs. LF: Normalizing Line Endings in Git
Line endings can differ from one OS to another. Learn the history behind CRLF and LF line endings and how to enforce line...
Read more >
BBEdit on Twitter: "@starwxrwx Sure it does, turn on "Show ...
BBEdit doesn't show line endings as invisibles either *sigh* (I want CR/LF characters to show ala Notepad++). ... I couldn't see any difference...
Read more >
Converting from Windows-style to UNIX-style line endings
All versions of Microsoft Windows represent line endings as CR followed by LF. UNIX and UNIX-like operating systems (including Mac OS X) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found