ReSharper Web Help

ReSharper | Templates Explorer | Surround Templates | XML

XML

ReSharper provides a single surround template for wrapping a selection with a pair of XML tags. You can add your custom templates to extend XML coverage in ReSharper.

Template name Description
tag

Go to top

Purpose
Wraps selection with a pair of tags.

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

Before expansion

After expansion

Parameters

  • TAG - tag name that you can select from a drop-down list.
  • SELECTION - selected text.
  • END - position of the caret after applying the template, helping you specify attributes.

See Also

Reference