Skip to content
Merged
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
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
"properties": {
"powershell.sideBar.CommandExplorerVisibility": {
"type": "boolean",
"default":true,
"default": true,
"description": "Specifies the visibility of the Command Explorer in the PowerShell Side Bar."
},
"powershell.powerShellExePath": {
Expand Down Expand Up @@ -611,6 +611,16 @@
"default": true,
"description": "Adds a space after a separator (',' and ';')."
},
"powershell.codeFormatting.WhitespaceInsideBrace": {
"type": "boolean",
"default": true,
"description": "Adds a space after an opening brace ('{') and before a closing brace ('}')."
},
"powershell.codeFormatting.WhitespaceAroundPipe": {
"type": "boolean",
"default": true,
"description": "Adds a space before and after the pipeline operator ('|')."
},
"powershell.codeFormatting.ignoreOneLineBlock": {
"type": "boolean",
"default": true,
Expand Down
4 changes: 4 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export interface ICodeFormattingSettings {
whitespaceBeforeOpenParen: boolean;
whitespaceAroundOperator: boolean;
whitespaceAfterSeparator: boolean;
WhitespaceInsideBrace: true;
WhitespaceAroundPipe: true;
ignoreOneLineBlock: boolean;
alignPropertyValuePairs: boolean;
}
Expand Down Expand Up @@ -129,6 +131,8 @@ export function load(): ISettings {
whitespaceBeforeOpenParen: true,
whitespaceAroundOperator: true,
whitespaceAfterSeparator: true,
WhitespaceInsideBrace: true,
WhitespaceAroundPipe: true,
ignoreOneLineBlock: true,
alignPropertyValuePairs: true,
};
Expand Down