@@ -141,6 +141,27 @@ public enum CodeFormattingPreset
141
141
Stroustrup
142
142
}
143
143
144
+ /// <summary>
145
+ /// Multi-line pipeline style settings.
146
+ /// </summary>
147
+ public enum PipelineIndentationStyle
148
+ {
149
+ /// <summary>
150
+ /// After the indentation level only once after the first pipeline and keep this level for the following pipelines.
151
+ /// </summary>
152
+ IncreaseIndentationForFirstPipeline ,
153
+
154
+ /// <summary>
155
+ /// After every pipeline, keep increasing the indentation.
156
+ /// </summary>
157
+ IncreaseIndentationAfterEveryPipeline ,
158
+
159
+ /// <summary>
160
+ /// Do not increase indentation level at all after pipeline.
161
+ /// </summary>
162
+ NoIndentation
163
+ }
164
+
144
165
public class CodeFormattingSettings
145
166
{
146
167
/// <summary>
@@ -172,6 +193,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
172
193
public bool OpenBraceOnSameLine { get ; set ; }
173
194
public bool NewLineAfterOpenBrace { get ; set ; }
174
195
public bool NewLineAfterCloseBrace { get ; set ; }
196
+ public PipelineIndentationStyle PipelineIndentationStyle { get ; set ; }
175
197
public bool WhitespaceBeforeOpenBrace { get ; set ; }
176
198
public bool WhitespaceBeforeOpenParen { get ; set ; }
177
199
public bool WhitespaceAroundOperator { get ; set ; }
@@ -250,6 +272,7 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
250
272
{ "PSUseConsistentIndentation" , new Hashtable {
251
273
{ "Enable" , true } ,
252
274
{ "IndentationSize" , tabSize } ,
275
+ { "PipelineIndentation" , PipelineIndentationStyle } ,
253
276
{ "Kind" , insertSpaces ? "space" : "tab" }
254
277
} } ,
255
278
{ "PSUseConsistentWhitespace" , new Hashtable {
0 commit comments