Is There an Autocomplete Feature for PowerShell Commands?
Asked by
CuriousCoder88
I'm curious if there's any plugin, modification, or alternative for PowerShell that offers autocomplete and can correct typos in my commands. For example, if I type 'winfet,' I'd like it to suggest 'winget' instead. It would also be great if it could help with common commands like 'ssh username@___' by suggesting options after 'ssh.' While PowerShell saves IPs, I'm looking for something that goes beyond that. Basically, I'm in search of the PowerShell equivalent of Notepad++ when it comes to command assistance. Does such a tool exist?
Answers
Have you tried doing a quick search? I found this interesting guide on Microsoft's website about autocompleting in PowerShell: https://techcommunity.microsoft.com/blog/itopstalkblog/autocomplete-in-powershell/2604524
Reply to this answer
PowerShell has a feature called Intellisense. If you're looking for a more enhanced experience, try installing Visual Studio Code along with the PowerShell pluginโit's a game changer!
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousCoder88: I actually checked that out and ran a script related to it (I think itโs called PSReadline), but it doesn't really autocorrect or suggest corrections for typos like I was hoping. I'm after something that gives me suggestions while typing, for common commands, especially when I mess up spelling. I now realize I referred to it as "autocomplete" instead of "autocorrect," but thatโs really what I need. It's getting late, and my brain's a bit foggy, so I'll dig into this more tomorrow. Thanks for the help!