Mark
Mark

Reputation: 1320

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

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.

Upvotes: 5

Views: 2427

Answers (1)

Mark
Mark

Reputation: 1320

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

insert_final_newline = true

Upvotes: 6

Related Questions