I want to match the terms "TextCtrls" and "LabelCtrls". When I find "TextCtrls" I want to replace with "Txt" and when I find "LabelControls" I want to replace with "Lbl". Online Demo
Is this possible with DTE.Find.ReplaceWith?
DTE.Find.FindWhat = "Container\(""\w+""\)\.(?:TextCtrls|LabelCtrls)\(""(?<ControlName>\w+)""\).Text"
DTE.Find.ReplaceWith = "<psydocode:Txt|Lbl>${ControlName}.Text"
Aucun commentaire:
Enregistrer un commentaire