Reputation: 883
Is it possible to include comments in a search? Or maybe even exclude code and search for comments only?
Like for example
int a = 1;
//int b = 2;
If I search for int
I will only find the int
which is not commented. I want to find the commented one.
edit
another thing I just noticed. When I search for things in xaml I cannot find them either. example:
<TextBlock x:Name="veryImportant"/>
cannot be found by searching for for example TextBlock
or Name
or veryImportant
Could it be possible to find it somehow?
Upvotes: 1
Views: 4027
Reputation: 472
Using CTRL + f
, you can do a simple text find which will include comments.
Upvotes: 0
Reputation: 93
Visual Studio does allow for string searching in comments, although, in your example, it is possible that you have it set to "Match whole word" -- can you confirm that this is not the case?
Upvotes: 5