around the selected text and selects..." /> around the selected text and selects..." /> around the selected text and selects..."/>

Extend ReSharper surround template with standard command

113 views Asked by At

I have this asp.net surround ReSharper template:

<%:"$SELSTART$$SELECTION$$SELEND$"%>

Its adds <%: %> around the selected text and selects the text. The reason that I re-select the text is that I want to move it to the resource file afterwords, using CRTL+SHIFT+R.

This means that I need to use the keys: CTRL+E / CTRL+U then hit the shorthand number key and then hit CRTL+SHIFT+R to move it to the resource. Is there anyway that I can combine the two commands?

I marked some text and hit some keys and it just surrounds the text with the response.write shorthand and add it to the resource file.

PS: I'm using ReSharper 7.1

0

There are 0 answers