{"id":8421,"date":"2012-08-06T11:59:00","date_gmt":"2012-08-06T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2012\/08\/06\/powertip-using-tabs-in-powershell\/"},"modified":"2012-08-06T11:59:00","modified_gmt":"2012-08-06T11:59:00","slug":"powertip-using-tabs-in-powershell","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-using-tabs-in-powershell\/","title":{"rendered":"PowerTip: Using Tabs in PowerShell"},"content":{"rendered":"<p><b>Summary<\/b>: Learn about creating tabs in Windows PowerShell by using the <strong><code>t&lt;\/strong&gt;.&lt;p&gt;&lt;b&gt;Question&lt;\/b&gt;: How would I use the &lt;b&gt;<\/code>t<\/b> in a script to produce a tab?<\/p>\n<p style=\"padding-left: 30px\"><b>Answer<\/b>: &#8220;`thi&#8221;\n<b>Question<\/b>: That syntax above is ugly. What happens if I put a space in it like this: &ldquo;`t hi&rdquo;?<\/p>\n<p style=\"padding-left: 30px\"><b>Answer<\/b>: If you include a space in the line like &ldquo;`t hi&rdquo;, then you will tab over one tab stop and one additional space.\n<b>Question<\/b>: Is the <b>`t<\/b> command such as &ldquo;`thi&rdquo; case sensitive?<\/p>\n<p style=\"padding-left: 30px\"><b>Answer<\/b>: Yes. It is one of the few things that are case sensitive in Windows PowerShell. If you use the <b>`t<\/b> as follows, you produce Thi on the line: &ldquo;`Thi&rdquo;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Learn about creating tabs in Windows PowerShell by using the t&lt;\/strong&gt;.&lt;p&gt;&lt;b&gt;Question&lt;\/b&gt;: How would I use the &lt;b&gt;t in a script to produce a tab? Answer: &#8220;`thi&#8221; Question: That syntax above is ugly. What happens if I put a space in it like this: &ldquo;`t hi&rdquo;? Answer: If you include a space in the line [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[356,3,45],"class_list":["post-8421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Learn about creating tabs in Windows PowerShell by using the t&lt;\/strong&gt;.&lt;p&gt;&lt;b&gt;Question&lt;\/b&gt;: How would I use the &lt;b&gt;t in a script to produce a tab? Answer: &#8220;`thi&#8221; Question: That syntax above is ugly. What happens if I put a space in it like this: &ldquo;`t hi&rdquo;? Answer: If you include a space in the line [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/8421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=8421"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/8421\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=8421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=8421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=8421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}