{"id":6751,"date":"2008-01-30T19:38:18","date_gmt":"2008-01-30T19:38:18","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2008\/01\/30\/tab-completion\/"},"modified":"2019-02-18T13:16:15","modified_gmt":"2019-02-18T20:16:15","slug":"tab-completion","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/tab-completion\/","title":{"rendered":"Tab Completion"},"content":{"rendered":"<p>Did you realize that you can use Wildcards with our tab completion?<\/p>\n<p>At the very beginning of the project, we had long discussions about whether it should be &quot;Verb-Noun&quot; or &quot;Noun-Verb&quot;.&#160; One of the arguments for NOUN-VERB was that it was better for tab completion.&#160; We expected a TON of nouns but only a few verbs.&#160; As such, if you type VERB-&lt;TAB&gt;, you&#8217;d see a ton of things to choose from.&#160;&#160; Alternatively, if you typed NOUN-&lt;TAB&gt;, you&#8217;d only see the VERBS that apply to that noun.&#160; <\/p>\n<p>That wasn&#8217;t a good enough reason to go NOUN-VERB.&#160; In the end, we wanted a THINK-TYPE-GET system and VERB-NOUN makes command sequences read like English:<\/p>\n<p>Get-Process |where {$_.handles -ge 500} |sort handles |format-table name,handles<\/p>\n<p>So what about tab completion &#8211; are you just hosed?&#160; NOPE.<\/p>\n<p>PowerShell&#8217;s tab completion supports wildcards.&#160; Try it yourself:<\/p>\n<p>*-Pro&lt;TAB&gt;   <br \/>*-p&lt;Tab&gt;    <br \/>*-p*er&lt;TAB&gt;<\/p>\n<p>&#160;<\/p>\n<p>All that said, I would be remiss if I didn&#8217;t point you to MOW&#8217;s excellent replacement for our tab completion called PowerTab.&#160; You can get it <a href=\"http:\/\/thepowershellguy.com\/blogs\/posh\/pages\/powertab.aspx\">HERE.<\/a><\/p>\n<p>Jeffrey Snover [MSFT]   <br \/>Windows Management Partner Architect    <br \/>Visit the Windows PowerShell Team blog at:&#160;&#160;&#160; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a>    <br \/>Visit the Windows PowerShell ScriptCenter at:&#160; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you realize that you can use Wildcards with our tab completion? At the very beginning of the project, we had long discussions about whether it should be &quot;Verb-Noun&quot; or &quot;Noun-Verb&quot;.&#160; One of the arguments for NOUN-VERB was that it was better for tab completion.&#160; We expected a TON of nouns but only a few [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Did you realize that you can use Wildcards with our tab completion? At the very beginning of the project, we had long discussions about whether it should be &quot;Verb-Noun&quot; or &quot;Noun-Verb&quot;.&#160; One of the arguments for NOUN-VERB was that it was better for tab completion.&#160; We expected a TON of nouns but only a few [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/6751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=6751"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/6751\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=6751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=6751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=6751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}