diff --git a/package.json b/package.json index dea3767df8..916da39268 100644 --- a/package.json +++ b/package.json @@ -826,6 +826,11 @@ "default": true, "description": "Align assignment statements in a hashtable or a DSC Configuration." }, + "powershell.codeFormatting.useConstantStrings": { + "type": "boolean", + "default": false, + "description": "Use single quotes if a string is not interpolated and its value does not contain a single quote." + }, "powershell.codeFormatting.useCorrectCasing": { "type": "boolean", "default": false, diff --git a/src/settings.ts b/src/settings.ts index 6271eb1274..35922fcacd 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -58,6 +58,7 @@ export interface ICodeFormattingSettings { trimWhitespaceAroundPipe: boolean; ignoreOneLineBlock: boolean; alignPropertyValuePairs: boolean; + useConstantStrings: boolean; useCorrectCasing: boolean; } @@ -185,6 +186,7 @@ export function load(): ISettings { trimWhitespaceAroundPipe: false, ignoreOneLineBlock: true, alignPropertyValuePairs: true, + useConstantStrings: false, useCorrectCasing: false, };