[英]How can I find all unsed using statements with ReSharper?
I want to find all unused using statements in my Xamarin C# project using Visual Studio and ReSharper. 我想使用Visual Studio和ReSharper在我的Xamarin C#项目中查找所有未使用的using语句。
How can I do this? 我怎样才能做到这一点?
You can see the unused using statements as warnings in ReSharper Errors/Warnings in Solution window. 您可以在“解决方案”窗口的“ ReSharper 错误/警告”中看到未使用的using语句作为警告。
You can open it by, 您可以通过以下方式打开它
ReSharper | Windows | Solution Errors
导航到ReSharper | Windows | Solution Errors
ReSharper | Windows | Solution Errors
ReSharper | Windows | Solution Errors
or, ReSharper | Windows | Solution Errors
或 By double clicking on the Errors/Warnings link at the bottom right corner of Visual Studio 通过双击Visual Studio右下角的“错误/警告”链接
In the appearing window, click on ⚠️ icon to show warnings. 在出现的窗口中,单击⚠️图标以显示警告。 If there are unused using statements there will be warnings listed. 如果有未使用的using语句,则会列出警告。 Expand the warnings to find using statement related warnings. 展开警告找到using语句相关的警告。
Double clicking on the warning will take you to the relevant file. 双击警告将带您到相关文件。 The unused using statement can be found in gray colour. 未使用的using语句可以找到灰色。
Note: Enable Solution Wide Analysis and Reanalyze All to make sure you want miss anything. 注意:启用“ 解决方案范围分析”和“ 全部重新分析” ,以确保您不想错过任何内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.