Skip to content

Commit 211dab7

Browse files
committed
Add setting for removal of trailing whitespace via PSES/PSSA
1 parent 031e76b commit 211dab7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,11 @@
898898
"type": "boolean",
899899
"default": false,
900900
"markdownDescription": "Use correct casing for cmdlets."
901+
},
902+
"powershell.codeFormatting.removeTrailingWhitespace": {
903+
"type": "boolean",
904+
"default": false,
905+
"markdownDescription": "Removes trailing whitespace from the end of a line."
901906
}
902907
}
903908
},

src/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class CodeFormattingSettings extends PartialSettings {
9494
alignPropertyValuePairs = true;
9595
useConstantStrings = false;
9696
useCorrectCasing = false;
97+
removeTrailingWhitespace = false;
9798
}
9899

99100
class ScriptAnalysisSettings extends PartialSettings {

0 commit comments

Comments
 (0)