File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 36
36
"MD024" : false // no-duplicate-header
37
37
},
38
38
"powershell.codeFormatting.autoCorrectAliases" : true ,
39
+ "powershell.codeFormatting.avoidSemicolonsAsLineTerminators" : true ,
39
40
"powershell.codeFormatting.newLineAfterCloseBrace" : false ,
40
41
"powershell.codeFormatting.trimWhitespaceAroundPipe" : true ,
41
42
"powershell.codeFormatting.useCorrectCasing" : true ,
Original file line number Diff line number Diff line change 676
676
"default" : false ,
677
677
"description" : " Replaces aliases with their aliased name."
678
678
},
679
+ "powershell.codeFormatting.avoidSemicolonsAsLineTerminators" : {
680
+ "type" : " boolean" ,
681
+ "default" : false ,
682
+ "description" : " Removes redundant semicolon(s) at the end of a line where a line terminator is sufficient."
683
+ },
679
684
"powershell.codeFormatting.preset" : {
680
685
"type" : " string" ,
681
686
"enum" : [
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export interface ICodeFoldingSettings {
42
42
43
43
export interface ICodeFormattingSettings {
44
44
autoCorrectAliases : boolean ;
45
+ avoidSemicolonsAsLineTerminators : boolean ;
45
46
preset : CodeFormattingPreset ;
46
47
openBraceOnSameLine : boolean ;
47
48
newLineAfterOpenBrace : boolean ;
@@ -173,6 +174,7 @@ export function load(): ISettings {
173
174
174
175
const defaultCodeFormattingSettings : ICodeFormattingSettings = {
175
176
autoCorrectAliases : false ,
177
+ avoidSemicolonsAsLineTerminators : false ,
176
178
preset : CodeFormattingPreset . Custom ,
177
179
openBraceOnSameLine : true ,
178
180
newLineAfterOpenBrace : true ,
You can’t perform that action at this time.
0 commit comments