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.
visual studio code
or editors other than Visual Studio
.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)
.