Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Jan 13, 2019
1 228
This plugin wraps CSS properties in the unitize mixin from Shopware in less files by pressing Ctrl + U e.g.
margin: 10px 0 10px;
/* Becomes */
.unitize-margin(10px, 0);

With the @nounitize CSS annotation (© Yannik_Sc) you can disable the unitizer for a single line.

By pressing Ctrl + Shift + Alt + U, you can unitize a whole file.

The source code can be found on: https://gitlab.com/Yannik_Sc/IntelliJ_Unitize

Recent change notes

fixes IndexOutOfBoundsException on last line

General usage instructions

This plugin wraps CSS properties in the unitize mixin from Shopware in less files by pressing Ctrl + U e.g.
margin: 10px 0 10px;
/* Becomes */
.unitize-margin(10px, 0);
With the @nounitize CSS annotation (© Yannik_Sc) you can disable the unitizer for a single line.
By pressing Ctrl + Shift + Alt + U, you can unitize a whole file.
The source code can be found on: https://gitlab.com/Yannik_Sc/IntelliJ_Unitize