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

Make global EOL character settings more prominent/obvious #234431

Open
kuhlaid opened this issue Nov 22, 2024 · 0 comments
Open

Make global EOL character settings more prominent/obvious #234431

kuhlaid opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@kuhlaid
Copy link

kuhlaid commented Nov 22, 2024

I was trying to change a file within a directory from CRLF to LF. I would use the little CRLF icon in the bottom footer of VS Code to change the EOL of the file from CRLF to LF and save the file. I closed the file and then opened again and the EOL characters were showing as CRLF again. THE ONLY way I was able to fix this was to go into File/Preferences/Settings and change the global EOL character to LF (\n). After that everything worked as expected.

What would be nice is if a user tries to switch the EOL of a single file from CRLF to LF (or some other variation) that differs from the global EOL setting, popup a prompt that simply lets the user know that the global EOL setting is X and do they want to change that setting instead of simply trying to change the setting for one file. It is not obvious that VS Code defaults to CRLF and that makes a big difference in many coding projects where EOL characters might matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants