CssCop是一個(gè)vs插件,可以幫助開(kāi)發(fā)者檢查和編寫優(yōu)秀的css代碼,提高css對(duì)瀏覽器的兼容性、編碼質(zhì)量和渲染性能。
CSSCop makes it easy to adhere to best practices for writing stylesheets. It catches common errors that affect browser compatibility and much more. You can think of it as FxCop for stylesheets. Follow me on Twitter for the latest news about CSSCop.
It uses the widely used CSS Lint tool behind the scenes. CSS Lint is THE best CSS linting tool on the market and CSSCop brings it directly into Visual Studio in an easy and convinient way.
To run CSSCop, simply right-click any CSS file, folder or project in Solution Explorer. That kicks of the rules engine and a list of warnings is added to the Error List.
The first time CSSCop is running, it will create a settings file (csslint.xml) in the root of your website. You can modify this file to turn rules on and off as you see fit. You can also specify whether or not the warnings should be treated as errors and be shown as such in the Error List.
更新日志:
Version 1.5
Support for Visual Studio 14
Version 1.4
Support for Visual Studio 2012
Version 1.2
Fixed a but with sites opened from an IIS Express path
Version 1.1
No longer requires IE9 to run
Fixed issue with .css file not part of the project