Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHighlight keyword default cmd aliases #157
Comments
|
The following is the suggestion you receive in VS Code with the PowerShell extension:
As you stated, the alias's you know are just the default alias's. There is an alias table ( Here is a discussion on two particular alias that greatly make the point why alias should not be used in scripts: REDDIT: Curl author asks Microsoft to remove 'curl' and 'wget' aliases from PowerShell (it actually points back to a GitHub PR). I believe these particular alias's are now disabled on the Linux distributions of PowerShell core, among others. (actually, never existed in Core on Linux) On the other side, I do have a PR #156, to demonstrates an experimental statement style scoping that would cause the alias's to highlight as a function. This PR however has also removed '%' and As a side note, I prefer not to use New-Object, instead using the syntax |

Environment
Issue Description
Please add highlighting of default command aliases (
sal,iex, etc.)Expected Behavior
Default cmd aliases highlighted as keywords / expressions
Code Samples
sal a New-Object;