Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我调试代码时,如果我必须找到设置变量的位置,我会对该变量进行文本搜索。如果有一个 resharper 命令可以转到设置变量的代码行,那将为我节省很多时间。有谁知道 resharper 是否提供此功能?
除此之外,Find usages您还可以右键单击并选择Inspect -> Value origin。它仅显示写入值的位置,并允许您进一步扩展它们,显示分配值的来源。
Find usages
Inspect -> Value origin
右键单击变量名称,然后选择Find Usages。在弹出的窗口中,您应该能够看到它是如何使用的。工具栏中有各种过滤选项。
Find Usages