Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio keeps adding a new line at the end of file on ctrl + save

I read about "LF will be replaced by CRLF" warning, but even after git commit, the line is still there and it is showing up in my pull requests. So, I'm having unrelated files in my PR with just a line at the end of the file.

Here is snapshot of what is happing on hitting a ctrl+save on any file I open in my Visual Studio. enter image description here Is there anyway to disable to this?

like image 924
user1455116 Avatar asked Oct 25 '25 01:10

user1455116


1 Answers

@pawel answered in comments above. The setting came from an .editorconfig file that was recently added.

like image 80
user1455116 Avatar answered Oct 26 '25 18:10

user1455116