title: How to type a tab (indent) in comments in PowerShell ISE?
body: <p>This is weird.</p>
  
  <p>I know tab is for command completion in the PowerShell ISE and fine so. But, it also messes up the editing pane.</p>
  
  <p>Do this:</p>
  
  <ol>
  <li><p>File > New (<code>Untitled1.ps1</code> opens)</p></li>
  <li><p>Press tab (all fine, you get an indent)</p></li>
  <li><p>type enter, <code>#</code> (comment) and press tab after it
  expected: one would get indentation after the hash
  actual: one gets the hash replaced by <code>$PSVersionTable</code> or whatever the command prompt has in its history! (tab and Shift-tab circle through those)</p></li>
  </ol>
  
  <p>Does this mean no-one uses tabs within comments in PowerShell scripts, or that no-one uses comments in PowerShell scripts?</p>
  
  <p>Can I turn off this behavior anywhere?</p>
  
  <p>Also, the behavior seems to be inconsistent. If I e.g. type <code>##</code>, sometimes tab does not do the completion (it does not enter a tab either).</p>
  
  <p>Can others reproduce this?</p>
  
  <p><img src="https://i.stack.imgur.com/yF4xY.png" alt="screenshot"></p>
  
  <p>System:
  Windows 8.1 Pro
  PowerShell ISE</p>