Templates/NewPowerShellScriptModule/editor/VSCode/settings.json

{
    // When enabled, will trim trailing whitespace when you save a file.
    "files.trimTrailingWhitespace": true
}