this post was submitted on 01 Apr 2024
3 points (80.0% liked)
Visual Studio Code
93 readers
3 users here now
Everything VS Code
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There's a setting to trim all trailing whitespace on save so that's how I avoid committing trailing whitespace. It seems to be separate from any beautifier plugins I use, it's under text editor > files > trim trailing whitespace. I also enable trim final newlines and insert final newline which ensures there's only 1 new line at the end of files.
Will check that out, thanks