Question

I don't know if I am being daft but I can't find a way of finding all usages of a View (cshtml file) with VS and Resharper. The view could be full or partial. If someone could help me out this would be useful for a new project I am working on!

Was it helpful?

Solution

If you have ReSharper installed:

  1. Select the View file from Solution Explorer
  2. With you keyboard, Ctrl + Shift + Alt + F12. OR, Right click on the View and select Find Usages Advanced...
    • Find Usages Advanced...
  3. This brings you a window. Select all the checkboxes from Find column, and select solution from Scope column, click Find
    • Search Properties
  4. This will bring you a list of usages, in Find result window.
    • Find Results

OTHER TIPS

Right-click on the view (or partial) and select "Find Usages"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top