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

Closed
kuhlaid opened this issue Nov 22, 2024 · 1 comment
Closed

Make global EOL character settings more prominent/obvious #234431

kuhlaid opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
*extension-candidate Issue identified as good extension implementation

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.

@sandy081 sandy081 assigned hediet and unassigned sandy081 Nov 25, 2024
@hediet hediet added the *extension-candidate Issue identified as good extension implementation label Dec 10, 2024
Copy link

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation
Projects
None yet
Development

No branches or pull requests

3 participants