How can I find all the commented lines in the enti

2020-06-18 06:40发布

问题:

If I search them with ctrl+f, they mix up with the comments, that has 3 bars. I'll appreciate your help

回答1:

Search for this in Visual Studio with regular expression turned on:

(^|[^/])//[^/]


回答2:

You can search based on a regular expression or wildcard, instead of "//" exactly. For regex searches you'd use "^:b*//[^/].*$" without the quotes.



回答3:

In the visual studio. Select View->Task list. There would be a drop down at the top of the talk list window where you can select Comments. This would show all the comments in the solution.