Merge Styles (ASP.NET)

Merges the selected styles into a single style.

Availability

Available from the context menu or via shortcuts:

  • when several styles are selected. The refactoring is available in a css file, or in a style container tag within an html or an aspx file.
Note

If the selected styles contain the same attribute with different values, the refactoring is unavailable.

Examples

.class1{color: Aqua; border-style: dotted;}
.class2{border-width: thick; border-style: dotted;}

Result:

.divStyle1{color: Aqua;border-style: dotted;border-width: thick;}

Screenshot

rsMergeStyles