Saran
Saran

Reputation: 6392

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.

Upvotes: 12

Views: 9695

Answers (2)

Taran
Taran

Reputation: 14126

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.

Upvotes: 9

Narendra
Narendra

Reputation: 3117

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.

Upvotes: 6

Related Questions