Find dead/unused code in the solution
After some time certain parts of code i n a project end up not being used anymore and just waste screen estate. It would be handy if Visual Studio could detect this and warn you about it.
7 comments
-
Daver
commented
It might be nice to be able to provide options to bulk comment and/or remove dead CSS and Javascript code. Another option would be to visually color or identify dead code... like red background for the code.
-
Daver
commented
Great idea to remove the bloat from unused CSS and Javascript to reduce payload size. Other options could be to bulk comment out unused code, move code to end of file.
-
Carlos López commented
There's a plugin, ReSharper, that already do this, but would be nice to have it out of the box
-
Miles commented
I believe visual studio already alerts of unreachable code in c#
-
Christian Schiffer
commented
Mads, yes that oo, but dead code in genral c# javascript css...
-
bhaelochon
commented
As an overall suggestion, this probably belongs on the Visual Studio UserVoice forum. But specifically finding dead/unused JS/CSS would be helpful, too.
-
Are you thinking of JS and CSS code in particular?