1

I have a project with 1 css file and a lot of templates (.tpl), so I know that in my css file there are a lot of classes which I don't use . How can I find these classes?

Is there an editor, plugin or other way, without searching each class in the whole project?

1
  • Do you really mean "classes"? Or the more general "selectors"? Commented Jul 22, 2009 at 8:34

5 Answers 5

2

There is another add-on from sitepoint that finds unused selectors

http://www.sitepoint.com/dustmeselectors/

Sign up to request clarification or add additional context in comments.

Comments

2

What you're looking for is a kind of code coverage tool for CSS, like:

https://addons.mozilla.org/en-US/firefox/addon/10704

1 Comment

I need to open All pages from Project ??? And this addon isn't compatible with firefox 3.5.1 I'll try to downgrade my firefox ... thank you this is a good plugin!
0

http://css-discuss.incutio.com/?page=CssEditors

http://www.jetbrains.com/idea/features/html_css_editor.html

Comments

0

Long Method

This method uses a feature that I know is available in Eclipse, the multi-language IDE. Take each class and search for eat in the project. If there is only one match (the css file, you can safely remove the class) else keep the class in the css file.

Comments

0

Try CSS Brush, a chrome plugin for creating CSS live. many features like select from page, use complete CSS path or filter to shorten the selector. Context-sensitive-menu and many more features.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.