📜 ⬆️ ⬇️

Validating CSS in Visual Studio 2010 using the CSSCop extension

The task of checking CSS style definition files, finding errors and violations of recommendations for working with styles in them 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 required CSS file for analysis and in the context menu, click “Run CSSCop”.
')
image

You will immediately receive a set of alerts related to the definition of styles.

image

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

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

Download CSSCop from here .

Source: https://habr.com/ru/post/134326/


All Articles