23.2. How PowerTab Works

PowerTab completely replaces the shell's tab completion mechanism. It supplies all the standard completions that you are used to: commands, variables, functions, and so on, and adds a lot more. For example, I find PowerTab very useful when I am trying to script a .NET type. Remember the code that used the System.Net.WebClient class from Chapter 17? PowerTab can help you by completing the type name in the New-Object cmdlet invocation line if you press Tab while typing the full class name. Finish typing the namespace part, at least, so that you do not get a huge list of suggestions. Figure 23-1 shows how the suggestions list looks.

Figure 23-1. PowerTab completing .NET class names

See the [Tab] text shown at the upper-left ...

Get Pro Windows PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.