File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 667667 "default" : true ,
668668 "description" : " Adds a space after a separator (',' and ';')."
669669 },
670+ "powershell.codeFormatting.WhitespaceInsideBrace" : {
671+ "type" : " boolean" ,
672+ "default" : true ,
673+ "description" : " Adds a space after an opening brace ('{') and before a closing brace ('}')."
674+ },
675+ "powershell.codeFormatting.WhitespaceAroundPipe" : {
676+ "type" : " boolean" ,
677+ "default" : true ,
678+ "description" : " Adds a space before and after the pipeline operator ('|')."
679+ },
670680 "powershell.codeFormatting.ignoreOneLineBlock" : {
671681 "type" : " boolean" ,
672682 "default" : true ,
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ export interface ICodeFormattingSettings {
5050 whitespaceBeforeOpenParen : boolean ;
5151 whitespaceAroundOperator : boolean ;
5252 whitespaceAfterSeparator : boolean ;
53+ WhitespaceInsideBrace : true ;
54+ WhitespaceAroundPipe : true ;
5355 ignoreOneLineBlock : boolean ;
5456 alignPropertyValuePairs : boolean ;
5557}
@@ -137,6 +139,8 @@ export function load(): ISettings {
137139 whitespaceBeforeOpenParen : true ,
138140 whitespaceAroundOperator : true ,
139141 whitespaceAfterSeparator : true ,
142+ WhitespaceInsideBrace : true ,
143+ WhitespaceAroundPipe : true ,
140144 ignoreOneLineBlock : true ,
141145 alignPropertyValuePairs : true ,
142146 } ;
You can’t perform that action at this time.
0 commit comments