How can I find all the commented lines in the enti

2020-06-18 07:07发布

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

3条回答
老娘就宠你
2楼-- · 2020-06-18 07:24

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

(^|[^/])//[^/]
查看更多
冷血范
3楼-- · 2020-06-18 07:30

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

查看更多
相关推荐>>
4楼-- · 2020-06-18 07:42

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.

查看更多
登录 后发表回答