开发者

Visual Studio - plugin finding/removing dead code?

开发者 https://www.devze.com 2022-12-24 06:08 出处:网络
Anyone knows any free Visual Studio add-in that would find and/or delete dead (unused) code? I saw such possi开发者_StackOverflow社区bility in MZ-Tools, but it\'s a little expensive as for private use

Anyone knows any free Visual Studio add-in that would find and/or delete dead (unused) code? I saw such possi开发者_StackOverflow社区bility in MZ-Tools, but it's a little expensive as for private use ;)


Depends... For .NET you can use FxCop for finding usused code and variables.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消