Home > Blockchain >  Visual Studio keeps adding a new line at the end of file on ctrl save
Visual Studio keeps adding a new line at the end of file on ctrl save

Time:02-16

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?

CodePudding user response:

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

  • Related