A formatter extension for Visual Studio Code that does nothing but trim trailing whitespace as in a lot of projects additional formatting rules are not necessary or desired.
Install the extension and add the following configuration to your VSCode's settings.json to apply it by default:
// Alternatively you can configure this via the UI:
// `Settings` -> `Editor: Default Formatter`
{
"editor.defaultFormatter": "bitpatty.trailing-whitespace-trimmer"
}