title: Notepad++ convert leading spaces to tabs upon entry
body: <p>Very close to reverse of <a href="https://stackoverflow.com/questions/455037/notepad-convert-tabs-to-spaces">this</a> question. I prefer coding with 2-whitespace indentation, but need to have files indented with tabs to align with project convention. What I would like to do is <em>preferably automatically</em> convert 2 spaces upon entry to tab symbol in Notepad++ and have the editor configured to tab length of 2.</p>
  
  <p>A possible manual way for doing this could be <code>Edit-&gt;Blank Operations-&gt;Space to TAB</code> but this converts <em>all</em> of my spaces to tabs, even those of length 1 - which are, for example, spaces between function arguments, not just leading spaces.</p>
  
  <p>In a perfect case scenario I'm trying to achieve formatting style as described <a href="https://stackoverflow.com/questions/16208065/how-to-get-indent-with-tabs-align-with-spaces-behavior-in-xcode">in this question</a>, but with typing just spaces and the editor taking care of the rest.<br>
  I'm on Notepad++ 6.0, but willing to upgrade if this helps</p>