CSS validation in Visual Studio 2010 using the CSSCop extension

    The task of checking CSS styles definition files, finding errors in them and violating styles recommendations has become even easier with the new CSSCop extension for Visual Studio 2010 (the name is given by analogy with the FxCop code analyzer).

    image

    After installing the extension, select the CSS file required for analysis and click on the “Run CSSCop” item in the context menu.

    image

    You will immediately receive a set of style definition warnings.

    image

    Some warnings are very important, some are irrelevant, but overall this test is a great way to bring your styles to a more standard and cross-browser look, as well as control the use of properties with vendor prefixes.

    In his work CSSCop expansion is based on a popular tool http://csslint.net/, which is now available to developers of Visual Studio 2010 in a convenient form with integration into the development environment.

    Download CSSCop from here .

    Also popular now: