Automatically switch the current CSS properties

Hello,

When selecting an HTML element, if this element has a single class, it would be nice to have an option to automatically switch the current CSS properties.

Example:

thank you