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
In recent Visual Studio Code versions you can find settings here:
Menu File → Preference → Settings → Text Editor → Files → (scroll down a bit) Trim Trailing Whitespace
This is for trimming whitespace when saving a file.
Or you can search "Trim Trailing Whitespace" in the top search bar.