visual studio - Is there a way commenting out search terms ? C# -


is there way in visual studios 2015 comment out every single line contains search term?

example:

1.)i lookup word "apple"

2.) >>>> every line contains term "apple" commented out automatically

find , replace -> replace in files

  • find what: \b.apple[^\r\n]
  • replace with: //$&
  • look in: current document
  • find options: use regular expressions

enter image description here


Comments