Visual Studio - 插件查找/删除死代码?
有人知道任何可以查找和/或删除无效(未使用)代码的免费 Visual Studio 插件吗?我在 MZ-Tools 中看到了这种可能性,但对于私人使用来说有点贵;)
Anyone knows any free Visual Studio add-in that would find and/or delete dead (unused) code? I saw such possibility in MZ-Tools, but it's a little expensive as for private use ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
取决于...对于.NET,您可以使用 FxCop 用于查找常用代码和变量。
Depends... For .NET you can use FxCop for finding usused code and variables.
您还可以安装 ReSharper。它通常会警告类文件中未使用的变量和方法。您可以在编码时看到它。它强调了这一点。它似乎确实错过了一些,但 FxCop 似乎确实为我找到了其余的。
更新:抱歉没有看到免费部分。但使用 ReSharper 一段时间后,它绝对物有所值。
You can also install ReSharper. It generally warns about unused variables and methods in a class file. You can see it as you are coding. It underlines it. It does seem to miss a couple but FxCop did seem to find the rest for me.
UPDATE: Sorry didn't see the FREE part. BUT after using ReSharper for a while it is definitely worth the money.