Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,11 @@
"default": true,
"description": "Adds a space before and after the pipeline operator ('|')."
},
"powershell.codeFormatting.trimWhitespaceAroundPipe": {
"type": "boolean",
"default": false,
"description": "Trims extraneous whitespace (more than 1 character) before and after the pipeline operator ('|')."
},
"powershell.codeFormatting.ignoreOneLineBlock": {
"type": "boolean",
"default": true,
Expand Down
2 changes: 2 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface ICodeFormattingSettings {
whitespaceAfterSeparator: boolean;
whitespaceInsideBrace: true;
whitespaceAroundPipe: true;
trimWhitespaceAroundPipe: false;
ignoreOneLineBlock: boolean;
alignPropertyValuePairs: boolean;
useCorrectCasing: boolean;
Expand Down Expand Up @@ -156,6 +157,7 @@ export function load(): ISettings {
whitespaceAfterSeparator: true,
whitespaceInsideBrace: true,
whitespaceAroundPipe: true,
trimWhitespaceAroundPipe: false,
ignoreOneLineBlock: true,
alignPropertyValuePairs: true,
useCorrectCasing: false,
Expand Down