Mehdi LAMRANI
Mehdi LAMRANI

Reputation: 11607

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)

Upvotes: 9

Views: 2870

Answers (1)

Azfar
Azfar

Reputation: 69

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

Upvotes: 6

Related Questions