Visual Studio - is there a way to insert a blank line at the end of files in Visual Studio 2019 (the IDE, NOT vscode)?

Viewed 811

I really dislike that VS2019 doesn't insert a blank line at the end of files and ensures there's always a blank line when you save a file. I feel like there has to be an option for that but the only thing I could find on Google were questions on how to remove blank lines at the end of files, mostly related to vscode.

1 Answers

As Drew Noakes suggested, add a .editorconfig file with the line

insert_final_newline = true
Related