-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
CR in a LF scripts unexpectly replaced by LF #149433
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
Comments
VS Code is currently very opinionated about line endings and tries to "fix them" as best as possible to make the problem of mixed line endings a thing of the past. This, however, comes at the cost that it ends up touching areas of the text buffer that are not edited directly. I suggest we track this in not identical, but similar issues, #127 or #35797 . |
alexdima
added
the
*duplicate
Issue identified as a duplicate of another issue(s)
label
May 13, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
1.create a file, line end with LF and contain CR.
i.e.
echo -e 'aaa\rbbb\nccc\n' > 1
2. edit with vscode, input or delete words
3.save
4.CR was replaced by LF.
usually, this replacement takes no effect. but I have a shell script in which CR is a separator of awk command. once CR was replaced by LF, the script run into error.
The text was updated successfully, but these errors were encountered: