VS 2010 MVC Formatting
Posted
by Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2010-06-12T10:42:35Z
Indexed on
2010/06/12
10:42 UTC
Read the original article
Hit count: 413
Hello,
MVC is formatting my code horribly, and I was wondering if you can turn it off? I feel the answer is no, but I was hoping VS 2010 had built in a setting...
Here's what its formatting as:
<% if (org.UserKey.HasValue)
{ %>
<%= org.Reference(i => i.UserReference).Email%>
<% }
else
{ %>
<%= org.UserEmail%>
<% } %>
I want the beginning brackets on the same line as the if and the else...
Thanks.
© Stack Overflow or respective owner