|
|
|
|
|
by bashinator
3956 days ago
|
|
The tab completion in powershell is frustrating to me. I never want to cycle through every available option (especially when many PSH commands have literally hundreds of switches). I want the tab-completion to only show options for which I've started typing the prefix. I want double-tab to print a listing of said options so that I can see them all at once. Is this possible? Right now it feels like there's a major lack of discoverability in PSH. |
|
In PowerShell 5 (at least in Windows 10), Ctrl-Space yields a list of matching completions. You can then use the arrow keys (ip, down, left, right) to pick one and hit enter or space to select.
It works for commands as well as for options/parameters and parameter values.
I.e. you can type get-pr[ctrl-space] and powershell responds with:
Choose Get-Process (right,right,right,space). Now the cmdline shows Hit [-][ctrl-space]. Powershell now shows: Pick "Name" and hit space: Now hit [ctrl-space] again. PowerShell now completes on running processes on the system, offering the list of all of the process names.