I suggest you ...

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.

378 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    XIIIXIII shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    7 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • DaverDaver commented  ·   ·  Flag as inappropriate

        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.

      • DaverDaver commented  ·   ·  Flag as inappropriate

        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ópezCarlos López commented  ·   ·  Flag as inappropriate

        There's a plugin, ReSharper, that already do this, but would be nice to have it out of the box

      • Miles Miles commented  ·   ·  Flag as inappropriate

        I believe visual studio already alerts of unreachable code in c#

      • bhaelochonbhaelochon commented  ·   ·  Flag as inappropriate

        As an overall suggestion, this probably belongs on the Visual Studio UserVoice forum. But specifically finding dead/unused JS/CSS would be helpful, too.

      Feedback and Knowledge Base