Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inconsistent Line Endings Visual Studio Community 2017

Tags:

In 2015 you could change this from File -> Advanced Save, however this is no longer a menu option.

Where is it located now? I mean the option to actually change what the line endings are, not disable the message.

like image 595
Richy Avatar asked Apr 10 '17 13:04

Richy


People also ask

What is inconsistent line endings in Visual Studio?

editorconfig specifying a different style of line endings, and then when you add any lines in the file Visual Studio will suddenly cause the file to have inconsistent endings.

How do you change line endings in Visual Studio?

Visual Studio Code has this feature : It's under “Text Editor” > “Files” > “Eol”.


1 Answers

Click:

Save As

Click the drop arrow next to Save.

Select Save with Encoding:

Save with Encoding

Now you can set the line endings:

Line endings

like image 190
Andrew Truckle Avatar answered Oct 01 '22 10:10

Andrew Truckle