Visual Studio : Search Uncommented Code only
Is there any way to restrict the Find/Search to uncommented lines only ?
(Maybe using regex开发者_StackOverflow中文版 would be a good lead)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
精彩评论