Removing unused CSS classes

I am sure this has been asked before but I couldn't find it. I have an old
site that is being updated. It has many CSS files that have been building up
over the years. How can I verify which CSS elements are used or not used so
I can remove the unused classes using ReSharper 6? Thanks in advance for any
responses.


1 comment
Comment actions Permalink

Hello Stephen,

At the moment you can only do this manually: invoke 'Find Usages' on each
CSS class and remove that class if no usages are found. There are similar
feature requests to find these automatically (http://youtrack.jetbrains.net/issue/RSRP-199366
and http://youtrack.jetbrains.net/issue/RSRP-192081 for instance) and you
can vote for them. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I am sure this has been asked before but I couldn't find it. I have an
old site that is being updated. It has many CSS files that have been
building up over the years. How can I verify which CSS elements are
used or not used so I can remove the unused classes using ReSharper 6?
Thanks in advance for any responses.



0

Please sign in to leave a comment.