Is there any way to disable ReSharper Web Form/MVC (.aspx) Code Formatting on Brace ( }
) Completion?
It is really frustrating and most of the time is not what I want. For instance if I have:
<% if (CurrentUser.IsRole(Helper.UserRole.Agent)) { %>
<%= Html.LinkTo("sign out", SessionRoutes.Logout, null, new { @class = "sign" }) %>
<% } else { %>
...
<% } %>
as soon as I type the last <% }
it formats like this:
<% if (CurrentUser.IsRole(Helper.UserRole.Agent))
{ %>
<%= Html.LinkTo("sign out", SessionRoutes.Logout, null, new { @class = "sign" })%>
<% }
else
{%>
<%
}%>
I have looked through ReSharper options, but cannot find any setting suitable. It's driving me nuts! To get around it I either have to paste the bracket, sometimes be lucky enough that ctrl+z works or type <{
then insert the %
then space :S
I'm sure anybody who has worked with ReSharper and web forms lately will know what I'm talking about.
Thanks