Remove trailing spaces automatically or with a shortcut

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 editor settings, but I cannot find what I am looking for.

7 s
7

Leave a Comment