I'm trying to use these awesome VS "Surround With" snippets with VS, but they dont't work as expected. Say I have some code:
<p>Success!</p>
If I select this code and select the ASP.NET MVC 4 / ifcs4 snippet, I would expect that my code becomes this:
@if (true) {
<p>Success!</p>
}
But instead, it becomes this:
<% if (true) { %>
<p>Success!</p>
<% } %>
These <% tags aren't even used in the Razor syntax, so why are they there? Isn't there any way I could put it to work in the expected manner?