File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/PowerShellEditorServices/Services/Workspace Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ internal enum CodeFormattingPreset
133133 /// </summary>
134134 OTBS ,
135135
136+ /// <summary>
137+ /// Configure the formatting settings to resemble OTBS with else on new line.
138+ /// </summary>
139+ OTPS ,
140+
136141 /// <summary>
137142 /// Configure the formatting settings to resemble the Stroustrup brace style variant of K&R indent/brace style.
138143 /// </summary>
@@ -239,6 +244,12 @@ public Hashtable GetPSSASettingsHashtable(
239244 closeBraceSettings [ "NewLineAfter" ] = false ;
240245 break ;
241246
247+ case CodeFormattingPreset . OTPS :
248+ openBraceSettings [ "OnSameLine" ] = true ;
249+ openBraceSettings [ "NewLineAfter" ] = true ;
250+ closeBraceSettings [ "NewLineAfter" ] = true ;
251+ break ;
252+
242253 case CodeFormattingPreset . Stroustrup :
243254 openBraceSettings [ "OnSameLine" ] = true ;
244255 openBraceSettings [ "NewLineAfter" ] = true ;
You can’t perform that action at this time.
0 commit comments