O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required