File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 359359 "default" : true ,
360360 "description" : " A new line must follow an open brace."
361361 },
362+ "powershell.codeFormatting.newLineAfterCloseBrace" : {
363+ "type" : " boolean" ,
364+ "default" : true ,
365+ "description" : " A new line must follow a close brace."
366+ },
362367 "powershell.codeFormatting.whitespaceBeforeOpenBrace" : {
363368 "type" : " boolean" ,
364369 "default" : true ,
Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ class PSDocumentFormattingEditProvider implements
414414
415415 case "PSPlaceCloseBrace" :
416416 ruleSettings [ "IgnoreOneLineBlock" ] = psSettings . codeFormatting . ignoreOneLineBlock ;
417+ ruleSettings [ "NewLineAfter" ] = psSettings . codeFormatting . newLineAfterCloseBrace ;
417418 break ;
418419
419420 case "PSUseConsistentIndentation" :
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import vscode = require('vscode');
99export interface ICodeFormattingSettings {
1010 openBraceOnSameLine : boolean ;
1111 newLineAfterOpenBrace : boolean ;
12+ newLineAfterCloseBrace : boolean ;
1213 whitespaceBeforeOpenBrace : boolean ;
1314 whitespaceBeforeOpenParen : boolean ;
1415 whitespaceAroundOperator : boolean ;
@@ -56,6 +57,7 @@ export function load(myPluginId: string): ISettings {
5657 let defaultCodeFormattingSettings : ICodeFormattingSettings = {
5758 openBraceOnSameLine : true ,
5859 newLineAfterOpenBrace : true ,
60+ newLineAfterCloseBrace : true ,
5961 whitespaceBeforeOpenBrace : true ,
6062 whitespaceBeforeOpenParen : true ,
6163 whitespaceAroundOperator : true ,
You can’t perform that action at this time.
0 commit comments