0

In Visual Studio, would there be way to paste the clipboard text with modification?

Basically I want to perform regex replacement (.*) and $1 kind of behavior without regex replacement.

For example, I would like to highlight text xxxx and replace it with /* obsolete xxxx */.

Pasting /* obsolete */ is not what I want to do because it is lacking xxxx

I cannot use regex listed above because I want to highlight any kind of word in the code.

Shintaro Takechi
  • 1,215
  • 1
  • 17
  • 39
  • It is unclear why the clipboard needs to be involved. [Look here](https://stackoverflow.com/questions/17194009/how-do-you-reference-a-capture-group-with-regex-find-and-replace-in-visual-studi). – Hans Passant Jun 15 '19 at 01:52
  • See https://stackoverflow.com/questions/53966998/any-way-in-visual-studio-to-programmatically-modify-selected-editor-text-while-i – Sergey Vlasov Jun 15 '19 at 02:51

0 Answers0