Closed JackW6809 closed 2 weeks ago
That's not tab completion, it's prediction. The standard way to accept predictions is the right arrow key, you can bind it to Tab like this: Set-PSReadLineKeyHandler -Function AcceptSuggestion -Chord Tab
but then you won't have your standard tab completion so I'd advice against it.
You're seeing IPConfig because that was the most recent command beginning with IP that you used.
If I type IP I get IPMO module name
As @MartinGC94 says tab cycles through all commands beginning IP
in alphabetical order, right arrow pulls back the whole of the line by default (so If you had ipconfig /flushdns
you'd get the switch)
In my profile I've set ctrl right arrow to pull back a word at a time, which IMHO makes the feature significantly more useful.
This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.
📣 Hey @JackW6809, how did we do? We would love to hear your feedback with the link below! 🗣️
🔗 https://aka.ms/PSRepoFeedback
Prerequisites
Steps to reproduce
Typing ip shows ipconfig as a suggested auto-completion. However, when pressing TAB it auto-completes it to ipal
Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
https://github.com/PowerShell/PowerShell/assets/53652452/67cc3405-8f92-4016-9b87-4651090b1f8b