PowerTip: Using Tabs in PowerShell

Doctor Scripto

Summary: Learn about creating tabs in Windows PowerShell by using the t</strong>.<p><b>Question</b>: How would I use the <b>t in a script to produce a tab?

Answer: “`thi” Question: That syntax above is ugly. What happens if I put a space in it like this: “`t hi”?

Answer: If you include a space in the line like “`t hi”, then you will tab over one tab stop and one additional space. Question: Is the `t command such as “`thi” case sensitive?

Answer: Yes. It is one of the few things that are case sensitive in Windows PowerShell. If you use the `t as follows, you produce Thi on the line: “`Thi”.


Discussion is closed.

Feedback usabilla icon