Skip to content
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

How to change all files' default eol to LF in windows? #25209

Closed
kimjuny opened this issue Apr 23, 2017 · 1 comment
Closed

How to change all files' default eol to LF in windows? #25209

kimjuny opened this issue Apr 23, 2017 · 1 comment
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@kimjuny
Copy link

kimjuny commented Apr 23, 2017

I currently have a copy of codes witch previously developed in MacOS. When I'm trying to open these files in my Windows.os vscode, I set charset = utf-8 in .editorconfig, and set "files.eol": "\n" in settings.json, it still shows CRLF on each file. What more should I do?

@mjbvz mjbvz added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Apr 24, 2017
@mjbvz mjbvz self-assigned this Apr 24, 2017
@mjbvz
Copy link
Contributor

mjbvz commented Apr 24, 2017

I believe that "files.eol" only effects new files. To covert existing files, try running the Change End of Line Sequence Command. This command applies per file. A simple command line script that uses tools such as dos2unix on windows or sed on MacOS should be able to convert all files in an entire project

Let me know if that answers your question.

@mjbvz mjbvz closed this as completed Apr 24, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants