I am working on an old Web Forms application with a lot of <%=
%>
bee sting code nuggets. I would like ReSharper to flag these and suggest replacement with the encoded version <%:
%>
(see here).
I have tried to create a custom pattern via this article, however I am not sure what to use as the placeholder between the opening and closing tags. The only placeholder types that seem available for ASPX pages are tag name, attribute, attribute value, and content placeholder. None of these seem to select (find) the value in the bee sting code nugget.
Since I only really need to find/replace the opening tag, I tried just using <%=
as the pattern (eliminating the need for a placeholder), however ReSharper does not let me save it. It requires the closing tag to be in the pattern to save.
How can I configure ReSharper to suggest replacing <%=
%>
with <%:
%>
?