开发者

Visual Studio : Search Uncommented Code only

开发者 https://www.devze.com 2023-04-06 18:25 出处:网络
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 uncomm

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

0

精彩评论

暂无评论...
验证码 换一张
取 消