Share via


Intelllisense in the Console

You're running a cmdlet in the PowerShell.exe host console. You want to see what parameters are available to you. You can tab through them, after inputting a hyphen, until you get the one you want... but, how do you display them all and then chose the one you want, avoiding the help file?

 

 Enter  Intellisense, Stage Left

Instead of pressing tab after the hyphen, try Ctrl & Space. You'll see this...

 

Now, use the arrow keys to arrive at the parameter you want and press Space.

 

You can also use Intellisense to show values that can be supplied to a parameter.

 

If there are too many results, input the first letter for Intellisense to work with, e.g. X and then use Ctrl & Space.

Comments

  • Anonymous
    September 08, 2017
    Use it always for parameter names but didn't know for parameter values.Thanks Ian!
  • Anonymous
    September 19, 2017
    Does not work in Integrated Console of VS code ;-(
    • Anonymous
      March 16, 2018
      This is using the PSReadline module in the PowerShell Console which was bundled with PowerShell 5 (but back compatible to 3 IIRC)This feature is only currently available in the PowerShell console not VSCode but I believe that this is coming soon