diff --git a/package.json b/package.json index 94099f6893..1b9854b9e1 100644 --- a/package.json +++ b/package.json @@ -585,6 +585,11 @@ "default": true, "description": "Shows the last line of a folded section similar to the default VSCode folding style. When disabled, the entire folded region is hidden." }, + "powershell.codeFormatting.autoCorrectAliases": { + "type": "boolean", + "default": false, + "description": "Replaces aliases with their aliased name." + }, "powershell.codeFormatting.preset": { "type": "string", "enum": [ diff --git a/src/settings.ts b/src/settings.ts index c7a87ffef7..5d737166be 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -35,6 +35,7 @@ export interface ICodeFoldingSettings { } export interface ICodeFormattingSettings { + autoCorrectAliases: boolean; preset: CodeFormattingPreset; openBraceOnSameLine: boolean; newLineAfterOpenBrace: boolean; @@ -121,6 +122,7 @@ export function load(): ISettings { }; const defaultCodeFormattingSettings: ICodeFormattingSettings = { + autoCorrectAliases: false, preset: CodeFormattingPreset.Custom, openBraceOnSameLine: true, newLineAfterOpenBrace: true,