Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code extension to highlight duplicates css properties

Any VS Code extension to highlight duplicate css properties? e.g

.test {
  font-size: 14px;
  ...
  font-size: 10px;
}
like image 434
Twist Avatar asked Oct 21 '18 18:10

Twist


1 Answers

There are built-in settings which will flag duplicate properties :

// Do not use duplicate style definitions.

 "css.lint.duplicateProperties": "ignore",

// Do not use duplicate style definitions.

 "less.lint.duplicateProperties": "ignore",

// Do not use duplicate style definitions.

"scss.lint.duplicateProperties": "ignore"

Options are ignore, warning and error. Default is "ignore".

like image 113
Mark Avatar answered Nov 15 '22 03:11

Mark