Is there a way to remove trailing spaces in Visual Studio Code (automatically or with a shortcut)?
I\'ve been looking for this in the command palette and in the edit
Not only can you change the Visual Studio Code settings to trim trailing whitespace automatically, but you can also do this from the command palette (Ctrl+Shift+P):
You can also use the keyboard shortcut:
(I'm using Visual Studio Code 1.20.1.)