Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Feb 03, 2018
672
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

Download plugin

Recent change notes

- Fixed unitizer for negative px values - Added formation for description

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