Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a plugin for Visual Studio to clean up CSS?

I'm looking for a plugin for Visual Studio 2010 to help me clean up my CSS in a ASP.NET MVC project.

We are a lot of people working on the same website and before I publish it, I wanna clean up the CSS to make sure there are no unused selectors.

I know that there are plugin for Firefox, but they won't catch any dynamically loaded CSS and usually they just check one page.

like image 346
gulbaek Avatar asked Oct 22 '11 08:10

gulbaek


People also ask

How do I tidy up code in Visual Studio?

Right-click on the project or solution name in Solution Explorer, select Analyze and Code Cleanup, and then select Run Code Cleanup.

Is Visual Studio Code good for CSS?

Visual Studio Code has built-in support for editing style sheets in CSS . css , SCSS . scss and Less .


1 Answers

I found this plugin for Visual Studio

CSSCop from Mads Kristensen

Its not perfect, but its a great start and its free

http://visualstudiogallery.msdn.microsoft.com/a921b98e-9430-4be2-bf53-1169e12bdb50

From 2015 onward you need to use https://marketplace.visualstudio.com/vsgallery/6edc26d4-47d8-4987-82ee-7c820d79be1d

like image 104
gulbaek Avatar answered Nov 15 '22 05:11

gulbaek