views:

29

answers:

1

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.

A: 

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.

GvS
I don't have this menu item on my VS2010 ultimate install.
Palantir
That menu option is not present on VS2010's File menu.
snemarch
I do have this setting in VS2010 Ultimate, however this option is not a global persistent option and is only valid for the current editor session. All I want is for VS to respect the currently open files line-endings when editing the file.
Brett Ryan