I am working on an old Web Forms application with many nuggets of code ting> t20> %> . I would like ReSharper to label them and suggest replacing the encoded version <%: %> (see here ).
I tried to create my own template using this article , however I'm not sure what to use as a placeholder between opening and closing tags. The only types of placeholders that are available for ASPX pages are the tag name, attribute, attribute value, and content placeholder. None of them seem to be able to select (find) the value in the nugget of the bee sting code.
Since I really need to find / replace the opening tag, I tried just using <%= as a template (excluding the need for a placeholder), however ReSharper does not allow me to save it. This requires that the closing tag be in the template for saving.
How can I configure ReSharper to suggest replacing <%= %> with <%: %> ?
source share