Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to count occurrence of a hard coded string in Visual studio?

In Eclipse, i can do this search for a hard coded string, which will tell the count and places where it is occurring.

I couldn't find how to do this in Visual Studio and my google search is not yielding anything on this.

Can someone help?

Thanks.

like image 802
Saran Avatar asked May 09 '13 09:05

Saran


2 Answers

Press ctrl+f. In find window select "find in files" at the top-left instead of Quick find. This will show the find result in a new window and you will get all statistics at the bottom of window.

like image 142
Narendra Avatar answered Oct 26 '22 17:10

Narendra


As of Visual Studio 2015, you now need to do Ctrl + Shift + F to pull up the full Find in Files menu, which will then give you the stats when you search in the current document.

like image 41
Taran Avatar answered Oct 26 '22 17:10

Taran