Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper reformat is changing line endings

Tags:

resharper

eol

Is there a setting to change it so ReSharper leaves my line endings alone? Nothing is jumping out at me.

Explanation of how I verified it below...

It looks like when I use ReSharper and do a complete code cleanup, it will change my line endings to CRLF, regardless of what they were before.

I've proven this to myself by having a file open in VS2010, doing File -> Advanced Save Options and changing line style to Unix (LF)

In Notepad++ I turn on viewing line endings and see only LF at the end of the lines.

Then, I do a ReSharper code cleanup, and CRLF shows up everywhere.

like image 692
CubanX Avatar asked Aug 12 '11 15:08

CubanX


1 Answers

Under Resharper / Options / Code Editing / General Formatter Style / Default Line Ending Style you can select - Current OS | Windows | Mac | Unix

like image 105
David Avatar answered Nov 09 '22 15:11

David