Suppose I have a block of code like this from which I want to create a snippet.
public class MapObjectComparer : IComparer<MapObject>
{
public int Compare(MapObject o1, MapObject o2)
{
if (o1 == null)
{
if (o2 == null)
return 0;
else
return -1;
}
if (o2 == null)
return 1;
if (o1.ObjectID < o2.ObjectID)
return -1;
else if (o1.ObjectID > o2.ObjectID)
return 1;
else
return 0;
}
}
I wish to replace every occurence of "MapObject" with $ComparerClassName$.
If I highlight only the substring "MapObject" in the class name "MapObjectComparer" the snippet designer replaces
only the full word "MapObject". Is it possible to have an option to replace also the substrings?