@@ -216,6 +216,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
216216
217217 public bool AddWhitespaceAroundPipe { get ; set ; }
218218 public bool AutoCorrectAliases { get ; set ; }
219+ public bool UseConstantStrings { get ; set ; }
219220 public CodeFormattingPreset Preset { get ; set ; }
220221 public bool OpenBraceOnSameLine { get ; set ; }
221222 public bool NewLineAfterOpenBrace { get ; set ; }
@@ -315,6 +316,9 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
315316 { "PSUseCorrectCasing" , new Hashtable {
316317 { "Enable" , UseCorrectCasing }
317318 } } ,
319+ { "PSAvoidUsingDoubleQuotesForConstantString" , new Hashtable {
320+ { "Enable" , UseConstantStrings }
321+ } } ,
318322 } ;
319323
320324 if ( AutoCorrectAliases )
@@ -331,7 +335,8 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
331335 "PSPlaceOpenBrace" ,
332336 "PSUseConsistentWhitespace" ,
333337 "PSUseConsistentIndentation" ,
334- "PSAlignAssignmentStatement"
338+ "PSAlignAssignmentStatement" ,
339+ "PSAvoidUsingDoubleQuotesForConstantString" ,
335340 } } ,
336341 {
337342 "Rules" , ruleConfigurations
0 commit comments