Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio : Search Uncommented Code only

Is there any way to restrict the Find/Search to uncommented lines only ?
(Maybe using regex would be a good lead)

like image 480
Mehdi LAMRANI Avatar asked Sep 23 '11 10:09

Mehdi LAMRANI


1 Answers

Lets say, if you need to search all occurrences of an uncommented text "VPEntity" then try using the following regular expression in Find in files after selecting the Use RegEx option

^((?!//|/\*).)*VPEntity

Hope it works for you

like image 122
Azfar Avatar answered Sep 18 '22 14:09

Azfar