2

I'm using Visual Studio 2019, and when I save a file (a cs file for example) VS will put an extra newline at the of the file.

  1. I need to stop this behavior, but what I have searched on the internet so far, was about visual studio code or editors other than Visual Studio.
  2. What is the philosophy of putting an extra newline at the end of file?
Rzassar
  • 2,117
  • 1
  • 33
  • 55
  • 1
    for question 1: _why_? what problems does it cause for you? for question 2: [this has been asked before](https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline) – Franz Gleichmann Oct 28 '20 at 07:32

1 Answers1

1

According to this link, I need to make Advanced Save Options menu visible, and then click it and change line endings dropdown value from Current Settings to Windows (CR LF).

Rzassar
  • 2,117
  • 1
  • 33
  • 55