Visual Studio Macros: Loop through Selection, add .Append(" and ") to each line in selection
Posted
by jlrolin
on Stack Overflow
See other posts from Stack Overflow
or by jlrolin
Published on 2010-03-18T17:16:13Z
Indexed on
2010/03/18
17:21 UTC
Read the original article
Hit count: 576
Found this:
Sub SurroundWithAppendTag()
DTE.ActiveDocument.Selection.Text = ".Append(""" + DTE.ActiveDocument.Selection.Text + """)"
End Sub
But I can't seem to figure out how to loop through each line of text in the selection. Any thoughts?
© Stack Overflow or respective owner