I’m sorry if this is a trivial question for you.
Is there any way to change the End of Line Character (EOL) character in Visual Studio 2010? I want to change it from Windows (‘\r\n’) format to UNIX (‘\n’) format.
Thanks
The Quick FixAt the bottom right of the screen in VS Code there is a little button that says “LF” or “CRLF”: Click that button and change it to your preference. Voila, the file you are editing now has the correct line breaks.
Visual Studio Code has this feature : It's under “Text Editor” > “Files” > “Eol”.
The Quick Fix for “End of line character is invalid”At the bottom right of the screen in VS Code , click the little button that says LF or CRLF . After changing it to your preference, Voila, the file you're editing now has the correct line breaks.
VS Code => Settings => Files: EoLAnd choose “\n” as EoL character if you would like your files to have Unix Style line endings and choose “\r\n” if you would like your files to have Windows Style line endings. VS Code — Eol Settings for Files. That settings applies to all new files that you create.
File
/ Save As ...
Save with Encoding...
(press the arrow next to the Save
button to see this option)Line endings
drop-down listIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With