-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Description
Summary of the new feature / enhancement
Users switching from cmd or bash may have muscle memory for commonly used commands with parameters. It would be useful to have a FeedbackProvider detect this and inform the user what the correct PowerShell syntax would be and have a predictor so that it can fill in the suggested fix.
Common use cases:
rm -rf
dir /s/q
Please add your own to this issue.
To clarify, as it seems some folks misunderstood the intent of this issue, the idea here is to leverage the Feedback provider model we added in PowerShell 7.4, so that if you were to type:
rm -rf
It would fail like it does today, but as part of the response, you would get something like:
[general]
It appears you are trying to recursively and forcibly remove files. In PowerShell, the correct syntax would be:
rm -r -fo
In this case, trying to keep the explanation text short and also using short hand since this is interactive only.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status