Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual Studio from mixing line endings in files

When opening a text based file in Visual Studio 2010 it will then write my edits with CRLF instead of the line ending format of the original file. How can I stop VS from doing this? Any half decent editor should have this capability.

What's worse is that since VS wrote the file with portions in CRLF, it then (when opening the file again) will present a dialog asking me to convert the files line ending.

like image 402
Brett Ryan Avatar asked Oct 06 '22 01:10

Brett Ryan


1 Answers

On the File menu, choose Advanced Save Options, you can control it there.

Edit: Here's the documentation, you should have a file open first.

like image 175
GvS Avatar answered Oct 13 '22 00:10

GvS