0

I'm trying to become one with PowerShell and found a feature that I really love but do not understand how to make it work consistently.

PowerShell can go into a mode where it shows an incrementally updated picklist of history items as you type. You can then up and down arrow through them to select the one you want to run and hit enter.

By default my PowerShell configuration just shows the last matching command on the command line as you type and if it is what you want to run you can hit right arrow then enter. I want the default to be the picklist. How do I enable this feature?

Here is a picture of the picklist I awant in action. Thanks

enter image description here

mklement0
  • 382,024
  • 64
  • 607
  • 775
JJF
  • 2,681
  • 2
  • 18
  • 31

1 Answers1

0

To switch from the default inline prediction to list-based predictions, put the following in your $PROFILE file:

Set-PSReadLineOption -PredictionViewStyle ListView

To toggle between inline and list view in-session (non-persistently), use F2.

See also:

mklement0
  • 382,024
  • 64
  • 607
  • 775