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.
精彩评论