title: Fix formatting of aspx file in Visual Studio?
body: <p>I have a file with a lot of this kind of thing in it:</p>
  
  <pre><code>    &lt;asp:TableCell ID="TableCell9" runat="server"&gt;Company 
  Organization:&lt;/asp:TableCell&gt;&lt;asp:TableCell ID="TableCell10" runat="server"&gt;
  </code></pre>
  
  <p>How can I get the formatter to change it to shows like this:</p>
  
  <pre><code>&lt;asp:TableCell ID="TableCell9" runat="server"&gt;Company Organization:&lt;/asp:TableCell&gt;
  &lt;asp:TableCell ID="TableCell10" runat="server"&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>What I have tried:</strong></p>
  
  <p>I opened Tools->Options then browsed to Text Editor. I got a list of Languages.  I selected HTML because that is the language that controls formatting for aspx files.  </p>
  
  <p>I changed "tag wrapping" to not have "Wrap tags when exceeding specified length" checked.</p>
  
  <p>I then pressed ctrl+k, ctrl+d  (Format the document).  This did not fix the problem.</p>
  
  <hr>
  
  <p><strong>What I don't want to have to do:</strong></p>
  
  <p>Edit the file manually to fix all the tags.</p>
  
  <p>Any ideas?</p>