简体   繁体   English

使用Resharper查找ASP.NET MVC视图的所有用法

[英]Find all usages of an ASP.NET MVC View with Resharper

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. 我不知道我是否愚蠢,但我找不到用VS和Resharper查找View(cshtml文件)的所有用法的方法。 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! 如果有人可以帮助我,这将对我正在开发的新项目有用!

If you have ReSharper installed: 如果安装了ReSharper:

  1. Select the View file from Solution Explorer 从Solution Explorer中选择View文件
  2. With you keyboard, Ctrl + Shift + Alt + F12 . 使用键盘, 按Ctrl + Shift + Alt + F12 OR, Right click on the View and select Find Usages Advanced... 或者,右键单击视图,然后选择查找高级用法...
    • 查找高级用法...
  3. This brings you a window. 这会给你一个窗口。 Select all the checkboxes from Find column, and select solution from Scope column, click Find 从“ 查找”列中选择所有复选框,然后从“ 范围”列中选择解决方案,单击“ 查找”
    • 搜索属性
  4. This will bring you a list of usages, in Find result window. 这将在查找结果窗口中为您提供一个用法列表。
    • 查找结果

右键单击视图(或部分)并选择“查找用法”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM