title: T4 indentation in generated C# code
body: <p>When using T4 to generate C# code, I can't get correct identation with TABS scattered around:</p>
  
  <pre><code>public partial class Foo : Base
  {
          public int C { get; set; }
          [MappedProperty("A.B[{C}].Foo")]
      public int Foo { get; set; }
  }
  </code></pre>
  
  <p>I'm using a seemingly correctly indented .TT code similar to the following:</p>
  
  <pre><code>public partial class &lt;#= ViewModelName #&gt;
  {
      &lt;#  foreach(var property in ViewModelProperties) { #&gt; 
          &lt;# if(property.Mapping != null) { #&gt;
          [MappedProperty("&lt;#= property.Mapping #&gt;")]
          &lt;# } #&gt;
          public &lt;#= property.TypeDeclaration #&gt; &lt;#= property.MemberName #&gt; { get; set; }
      &lt;# } #&gt;
  }
  </code></pre>
  
  <p>This code snippet reflects what I've already tried to do: make control statements and blocks to a single line as much as possible.</p>