ReSharper Web Help

ReSharper | Live Templates | Surround Templates | Predefined | ASP.NET | Other

ASP.NET

Other

Template name Description
link

Purpose
Wraps selection with a tag.

<a href="http://$END$">$SELECTION$</a>

Before expansion
Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__Other__link__before.png
After expansion
Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__Other__link__after.png

Parameters

  • END - position of the caret after applying the template.
  • SELECTION - selected text.

tag

Purpose
Displays the list of available tags and wraps selection with a pair of tags.

<$TAG$$RUNATSERVER$$END$>$SELECTION$</$TAG$>

Before expansion
Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__Other__tag__before
After expansion
Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__Other__tag__after

Parameters

  • TAG - name of tag to be inserted.
  • RUNATSERVER - attribute runat that gets inserted with value server if server-side tag selected.
  • END - position of the caret after applying the template.
  • SELECTION - selected text.

See Also

Reference