-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for CR line endings! #211461
Comments
What's real use case? |
Why does it matter?? Many/most text editors support CR line endings as they have historically been used on many systems. As I mentioned Notepad supports it, Visual Studio, BBedit (Mac), Notepad++, etc. Here is a non-inclusive list of older systems which use CR on EOL. (From Wikipedia except for list line which is my use case) Commodore 8-bit machines C64, C128 |
This seems like a small but nice improvement of VC. |
Because without use cases it it looks like "it was used long time ago and some software supports it because of historical reasons". With compeling use cases it might be in better situation then previous issues. More details about yours might be reason to reconsider reasoning from #149433 (comment) Basically it's duplicate of #35797 which gathered 45 👍 in 7 years Recent one didn't found support at all #180090 :( |
Yes, it has been ignored for 7 years. |
Can this be handled with an extension, or is the saving of line endings a core issue? |
Writing C and Z-80 assembly programs for my various TRS-80 computers (and their emulators). Editing text for those same machines. I can already open any kind of text file in Vim, and convert to any other, but not having to do that extra step would sure be nice. |
Exactly! People have found work arounds for something simple that should not need a work around. |
This would be awesome not only for development on older computers, but also for browsing old source code archives for them. As @telanoc said, one less step. No mass format conversions just so you can read up on things. |
TLDR No. Because of the links IllusionMH mentioned (where they explicitly state vscode is opinionated on line endings, so therefor extension developers are only afforded the under-the-hood implementations given to them, which are based on that opinionation) So in short, vscode always 'normalizes' line endings on save. Here is a longer reason why it currently can't be supported via an extension if you are interested #196067 (comment) (bullet 2) Not to mention, the biggest constraint extension's have is the 50MB rule so if you're working with something over 50MB the extension is effectively moot |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
I would like to be able to use VScode to edit source and other files from OS9 systems, without having the files requiring new line re-formatting as part of the process of putting them back into the OS9 environment. |
Add me to the list of people who want this... |
Its time |
🙂 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! |
Just checked and this issue is still marked as 'open' in the Backlog queue. |
But did this feature actually get added? Is it being worked on? |
@Jeff-Birt wondered:
The issue that this was tagged as a dup of, Can we support CR line endings as well as LF and CRLF? #35797, is still in the Backlog, but with no date. |
Please add support for CR line endings. These are used by many older systems.
Even Notepad supports CR line endings :)
The text was updated successfully, but these errors were encountered: