简体   繁体   中英

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.

How can I do this?

You can see the unused using statements as warnings in ReSharper Errors/Warnings in Solution window.

You can open it by,

  • Navigating to ReSharper | Windows | Solution Errors ReSharper | Windows | Solution Errors ReSharper | Windows | Solution Errors or,
  • 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. Expand the warnings to find using statement related warnings.

    使用与语句相关的警告

    Double clicking on the warning will take you to the relevant file. The unused using statement can be found in gray colour.

Note: Enable Solution Wide Analysis and Reanalyze All to make sure you want miss anything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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