ISE Auto-Completion Trick

by Mar 31, 2015

PowerShell 3.0 ISE and later

When you want to select the information returned by a cmdlet, you typically use Select-Object:

Get-Process | Select-Object -Property Name, Company, Description

However, you would have to manually enter the property names you want to display. There is no IntelliSense popping up after you entered “-Property “.

A little-known trick is to open the IntelliSense menu manually by pressing CTRL+SPACE. As you will see, PowerShell will happily provide a list of available properties, provided the upstream cmdlet defines its output type(s).

To choose more than one property, after entering the comma, simply press CTRL+SPACE again.

Twitter This Tip! ReTweet this Tip!