vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Auto expansion for alias commands.

Open ww40 opened this issue 9 years ago • 21 comments

A common factor in providing help and reviewing PowerShell scripts in general we find veterans who will use alias's for common commands such as %(ForEach-Object), cls(Clear-Host), ri(Remove-Item), mi(Move-Item, CD(Set-Location)....I'm sure you see where i'm going with this.

What if upon saving your solution there would be an option to automatically convert all the alias commands into their full commands to save time on converting documents into more readable documents for future use/reviews.

Could this be something you could implement?

ww40 avatar Feb 09 '17 13:02 ww40

Alias expansion is supported today: use the PowerShell: Expand Alias command, or enable powershell.codeFormatting.autoCorrectAliases to expand aliases on format/save. Closing as implemented — please open a new issue if you hit a specific gap.

🤖 Drafted by GitHub Copilot at @andyleejordan's request — pending maintainer review.

andyleejordan avatar Jun 15 '26 23:06 andyleejordan