How do I force unix (LF) line endings in Visual Studio (Express) 2008?

Viewed 59244

Is there a way to always have LF line endings in Visual Studio? I can never seem to find it!

6 Answers

You don't have to install any plugins. As mentioned here you can configure line endings in File -> Advanced Save options...

Visual Studio 2008 doesn't retain the advanced save options after the solution is closed. I would be willing to hand edit a lot of files if that would make it work consistently, but I am not willing to change all of the settings every time I open VS.

This is too bad. Since VS does support forcing the line-endings to whatever is desired in the backend, its just not hooked up properly in the UI. Maybe Microsoft will fix this isn a service pack.

Related