Display mixed line endings explicitly in status bar as "LF (mixed)" or "CRLF (mixed)"
See original GitHub issueWhen 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:
- Created 3 years ago
- Reactions:32
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🙂 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!
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