DEV Community

Discussion on: VS Code settings you should customize

Collapse
 
mroggy85 profile image
Oskar Okuno

Great article! Just wanted to add an option that you should use together (and anyways) with "files.trimFinalNewlines": true

"files.insertFinalNewline": true (default false)

To make sure your files are POSIX compliant :)

Collapse
 
cyberspy profile image
Adam

That's the best suggestion here!
SourceTree (and presumably Git), includes the previous last line in a change, when you add more lines to the end of the file, if you don't have a blank line at the end of a file.
It doesn't make much difference, but just looks unnecessary when reviewing changes before committing.

Collapse
 
codemouse92 profile image
Jason C. McDonald

Excellent, I was just wondering about that!